Skip to content
  • weinig@apple.com's avatar
    Make WKProcessGroup work with WKObject wrapping · 8d62fa4b
    weinig@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=124952
    
    Reviewed by Dan Bernstein.
    
    * Shared/Cocoa/APIObject.mm:
    (API::Object::newObject):
    Add support for WKProcessGroup.
    
    * UIProcess/API/mac/WKProcessGroup.mm:
    (-[WKProcessGroup initWithInjectedBundleURL:]):
    (-[WKProcessGroup dealloc]):
    (-[WKProcessGroup API::]):
    (-[WKProcessGroup _contextRef]):
    (-[WKProcessGroup _geolocationProvider]):
    Convert from wrapping the C-SPI type to storing the bits of the wrapped object inline
    
    * UIProcess/API/mac/WKProcessGroupInternal.h: Added.
    (WebKit::wrapper):
    Add wrapper() helper and declare conformance to the WKObject protocol.
    
    * UIProcess/WebContext.cpp:
    (WebKit::WebContext::create):
    (WebKit::WebContext::WebContext):
    * UIProcess/WebContext.h:
    Make the WebContext constructor public (for use with Object::constructInWrapper) and remove unused ProcessModel parameter.
    
    * WebKit2.xcodeproj/project.pbxproj:
    Add new file.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    8d62fa4b