summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess/API/mac/WKBrowsingContextController.mm
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/UIProcess/API/mac/WKBrowsingContextController.mm')
-rw-r--r--Source/WebKit2/UIProcess/API/mac/WKBrowsingContextController.mm14
1 files changed, 6 insertions, 8 deletions
diff --git a/Source/WebKit2/UIProcess/API/mac/WKBrowsingContextController.mm b/Source/WebKit2/UIProcess/API/mac/WKBrowsingContextController.mm
index 8604de876..d91019f72 100644
--- a/Source/WebKit2/UIProcess/API/mac/WKBrowsingContextController.mm
+++ b/Source/WebKit2/UIProcess/API/mac/WKBrowsingContextController.mm
@@ -37,6 +37,7 @@
#import "WKURLRequest.h"
#import "WKURLRequestNS.h"
#import "WebContext.h"
+#import "WebPageProxy.h"
#import <wtf/RetainPtr.h>
#import "WKBrowsingContextLoadDelegate.h"
@@ -53,7 +54,6 @@ static inline NSURL *autoreleased(WKURLRef url)
return [(NSURL *)WKURLCopyCFURL(kCFAllocatorDefault, wkURL.get()) autorelease];
}
-
@interface WKBrowsingContextControllerData : NSObject {
@public
// Underlying WKPageRef.
@@ -68,13 +68,6 @@ static inline NSURL *autoreleased(WKURLRef url)
@end
-@interface WKBrowsingContextController ()
-
-@property(readonly) WKPageRef _pageRef;
-
-@end
-
-
@implementation WKBrowsingContextController
- (void)dealloc
@@ -418,6 +411,11 @@ static void setUpPageLoaderClient(WKBrowsingContextController *browsingContext,
return self;
}
++ (WKBrowsingContextController *)_browsingContextControllerForPageRef:(WKPageRef)pageRef
+{
+ return (WKBrowsingContextController *)WebKit::toImpl(pageRef)->loaderClient().client().clientInfo;
+}
+
+ (NSMutableSet *)customSchemes
{
static NSMutableSet *customSchemes = [[NSMutableSet alloc] init];