Skip to content
  • weinig@apple.com's avatar
    Add variants of the loading APIs that take user data and a way for the... · 147cb451
    weinig@apple.com authored
    Add variants of the loading APIs that take user data and a way for the injected bundle to find out about them
    https://bugs.webkit.org/show_bug.cgi?id=116132
    
    Reviewed by Anders Carlsson.
    
    Adds "WithUserData" versions of all the load APIs and two new WKBundlePageLoaderClient functions,
    willLoadURLRequest and willLoadDataRequest to let the bundle access them.
    
    Source/WebKit2: 
    
    Adds WebKit2WillLoadTest.* API tests.
    
    * UIProcess/API/C/WKPage.cpp:
    (WKPageLoadURLWithUserData):
    (WKPageLoadURLRequestWithUserData):
    (WKPageLoadFile):
    (WKPageLoadFileWithUserData):
    (WKPageLoadHTMLStringWithUserData):
    (WKPageLoadAlternateHTMLStringWithUserData):
    (WKPageLoadPlainTextStringWithUserData):
    (WKPageLoadWebArchiveDataWithUserData):
    * UIProcess/API/C/WKPage.h:
    * UIProcess/WebPageProxy.cpp:
    * UIProcess/WebPageProxy.h:
    (WebPageProxy):
    * WebKit2.xcodeproj/project.pbxproj:
    * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
    * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
    (WebKit::InjectedBundlePageLoaderClient::willLoadURLRequest):
    (WebKit::InjectedBundlePageLoaderClient::willLoadDataRequest):
    * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
    (WebCore):
    (InjectedBundlePageLoaderClient):
    * WebProcess/WebPage/WebPage.cpp:
    * WebProcess/WebPage/WebPage.h:
    * WebProcess/WebPage/WebPage.messages.in:
    
    Tools: 
    
    * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
    * TestWebKitAPI/Tests/WebKit2/WillLoad.cpp: Added.
    * TestWebKitAPI/Tests/WebKit2/WillLoad_Bundle.cpp: Added.
    * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150242 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    147cb451