Skip to content
  • ap@apple.com's avatar
    [WK2] Support posting injected bundle messages to a page · 38d20fcf
    ap@apple.com authored
            https://bugs.webkit.org/show_bug.cgi?id=94630
    
            Reviewed by Sam Weinig.
    
            * Shared/APIClientTraits.cpp:
            * Shared/APIClientTraits.h:
            * Shared/CoreIPCSupport/InjectedBundleMessageKinds.h:
            * UIProcess/API/C/WKPage.cpp:
            (WKPagePostMessageToInjectedBundle):
            * UIProcess/API/C/WKPage.h:
            * UIProcess/WebPageProxy.cpp:
            (WebKit::WebPageProxy::postMessageToInjectedBundle):
            * UIProcess/WebPageProxy.h:
            * WebProcess/InjectedBundle/API/c/WKBundle.h:
            * WebProcess/InjectedBundle/InjectedBundle.cpp:
            (WebKit::InjectedBundle::didReceiveMessageToPage):
            (WebKit::InjectedBundle::didReceiveMessage):
            * WebProcess/InjectedBundle/InjectedBundle.h:
            * WebProcess/InjectedBundle/InjectedBundleClient.cpp:
            (WebKit::InjectedBundleClient::didReceiveMessageToPage):
            * WebProcess/InjectedBundle/InjectedBundleClient.h:
            (InjectedBundleClient):
            Added a PostMessageToPage injected bundle message type, with all associated
            machinery. API is WKPagePostMessageToInjectedBundle(), and an associated
            didReceiveMessageToPage() injected bundle client function.
    
            * WebProcess/qt/QtBuiltinBundle.cpp: (WebKit::QtBuiltinBundle::initialize):
            Updated for new client API.
    
            * UIProcess/WebContext.cpp: (WebKit::WebContext::postMessageToInjectedBundle):
            Implemented multiple process model case.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126311 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    38d20fcf