Changeset 158942 in webkit


Ignore:
Timestamp:
Nov 8, 2013 12:42:42 PM (10 years ago)
Author:
andersca@apple.com
Message:

Add a way to get a WKWebProcessPlugInBrowserContextController from a handle
https://bugs.webkit.org/show_bug.cgi?id=124063

Reviewed by Beth Dakin.

  • WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:

(+[WKWebProcessPlugInBrowserContextController lookUpBrowsingContextFromHandle:]):

  • WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextControllerPrivate.h:
Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r158939 r158942  
     12013-11-08  Anders Carlsson  <andersca@apple.com>
     2
     3        Add a way to get a WKWebProcessPlugInBrowserContextController from a handle
     4        https://bugs.webkit.org/show_bug.cgi?id=124063
     5
     6        Reviewed by Beth Dakin.
     7
     8        * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:
     9        (+[WKWebProcessPlugInBrowserContextController lookUpBrowsingContextFromHandle:]):
     10        * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextControllerPrivate.h:
     11
    1122013-11-08  Anders Carlsson  <andersca@apple.com>
    213
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm

    r158939 r158942  
    3636#import "WKDOMInternals.h"
    3737#import "WKRetainPtr.h"
     38#import "WKWebProcessPlugInInternal.h"
    3839#import "WebPage.h"
     40#import "WebProcess.h"
    3941#import <WebCore/Document.h>
    4042#import <WebCore/Frame.h>
     
    9092}
    9193
     94+ (instancetype)lookUpBrowsingContextFromHandle:(WKBrowsingContextHandle *)handle
     95{
     96    WebPage* webPage = WebProcess::shared().webPage(handle.pageID);
     97    if (!webPage)
     98        return nil;
     99
     100    return [[WKWebProcessPlugInController _shared] _browserContextControllerForBundlePageRef:toAPI(webPage)];
     101}
     102
    92103@end
    93104
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextControllerPrivate.h

    r158939 r158942  
    3838@property (nonatomic, readonly) WKBrowsingContextHandle *handle;
    3939
     40+ (instancetype)lookUpBrowsingContextFromHandle:(WKBrowsingContextHandle *)handle;
     41
    4042@end
    4143
Note: See TracChangeset for help on using the changeset viewer.