Move URL from WebCore to WTF
[WebKit-https.git] / Source / WebKit / UIProcess / ios / WKGeolocationProviderIOS.mm
index 361bc50..f6336fc 100644 (file)
 #import "_WKGeolocationCoreLocationProvider.h"
 #import "_WKGeolocationPositionInternal.h"
 #import <WebCore/GeolocationPosition.h>
-#import <WebCore/URL.h>
 #import <WebGeolocationPosition.h>
 #import <wtf/Assertions.h>
 #import <wtf/BlockPtr.h>
 #import <wtf/HashSet.h>
 #import <wtf/RefPtr.h>
 #import <wtf/RetainPtr.h>
+#import <wtf/URL.h>
 
 // FIXME: Remove use of WebKit1 from WebKit2
 #import <WebKit/WebGeolocationCoreLocationProvider.h>
@@ -184,7 +184,7 @@ static void setEnableHighAccuracy(WKGeolocationManagerRef geolocationManager, bo
 
         id<WKUIDelegatePrivate> uiDelegate = static_cast<id <WKUIDelegatePrivate>>([request.view UIDelegate]);
         if ([uiDelegate respondsToSelector:@selector(_webView:requestGeolocationAuthorizationForURL:frame:decisionHandler:)]) {
-            WebCore::URL requestFrameURL(WebCore::URL(), request.frame->url());
+            URL requestFrameURL(URL(), request.frame->url());
             RetainPtr<WKFrameInfo> frameInfo = wrapper(API::FrameInfo::create(*request.frame.get(), *request.origin.get()));
             RefPtr<WebKit::CompletionHandlerCallChecker> checker = WebKit::CompletionHandlerCallChecker::create(uiDelegate, @selector(_webView:requestGeolocationAuthorizationForURL:frame:decisionHandler:));
             WKWebView *viewFromRequest = request.view.get();
@@ -200,8 +200,8 @@ static void setEnableHighAccuracy(WKGeolocationManagerRef geolocationManager, bo
         if ([uiDelegate respondsToSelector:@selector(_webView:shouldRequestGeolocationAuthorizationForURL:isMainFrame:mainFrameURL:)]) {
             const WebKit::WebFrameProxy* mainFrame = request.frame->page()->mainFrame();
             bool isMainFrame = request.frame == mainFrame;
-            WebCore::URL requestFrameURL(WebCore::URL(), request.frame->url());
-            WebCore::URL mainFrameURL(WebCore::URL(), mainFrame->url());
+            URL requestFrameURL(URL(), request.frame->url());
+            URL mainFrameURL(URL(), mainFrame->url());
             requiresUserAuthorization = [uiDelegate _webView:request.view.get()
                  shouldRequestGeolocationAuthorizationForURL:requestFrameURL
                                                  isMainFrame:isMainFrame