Message receiver generation should work in terms of MessageReceiver objects
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Jan 2013 23:08:08 +0000 (23:08 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Jan 2013 23:08:08 +0000 (23:08 +0000)
https://bugs.webkit.org/show_bug.cgi?id=107742

Reviewed by Beth Dakin.

The generated message receiver code should generate the MessageReceiver
member functions didReceiveMessage and didReceiveSyncMessage instead of
receiver specific member functions.

* NetworkProcess/NetworkConnectionToWebProcess.messages.in:
* NetworkProcess/NetworkProcess.messages.in:
* NetworkProcess/NetworkResourceLoader.messages.in:
* PluginProcess/PluginControllerProxy.messages.in:
* PluginProcess/PluginProcess.messages.in:
* PluginProcess/WebProcessConnection.messages.in:
* Scripts/webkit2/messages.py:
(generate_message_handler):
* Scripts/webkit2/messages_unittest.py:
* Scripts/webkit2/model.py:
(MessageReceiver.__init__):
(MessageReceiver.has_attribute):
* Scripts/webkit2/parser.py:
(parse):
* Shared/Network/CustomProtocols/CustomProtocolManager.messages.in:
* Shared/Plugins/NPObjectMessageReceiver.messages.in:
* Shared/WebConnection.messages.in:
* Shared/mac/SecItemShim.messages.in:
* SharedWorkerProcess/SharedWorkerProcess.messages.in:
* UIProcess/Downloads/DownloadProxy.messages.in:
* UIProcess/DrawingAreaProxy.messages.in:
* UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in:
* UIProcess/Network/NetworkProcessProxy.messages.in:
* UIProcess/Notifications/WebNotificationManagerProxy.messages.in:
* UIProcess/Plugins/PluginProcessProxy.messages.in:
* UIProcess/SharedWorkers/SharedWorkerProcessProxy.messages.in:
* UIProcess/WebApplicationCacheManagerProxy.messages.in:
* UIProcess/WebContext.messages.in:
* UIProcess/WebCookieManagerProxy.messages.in:
* UIProcess/WebDatabaseManagerProxy.messages.in:
* UIProcess/WebFullScreenManagerProxy.messages.in:
* UIProcess/WebGeolocationManagerProxy.messages.in:
* UIProcess/WebIconDatabase.messages.in:
* UIProcess/WebInspectorProxy.messages.in:
* UIProcess/WebKeyValueStorageManagerProxy.messages.in:
* UIProcess/WebMediaCacheManagerProxy.messages.in:
* UIProcess/WebPageProxy.messages.in:
* UIProcess/WebProcessProxy.messages.in:
* UIProcess/WebResourceCacheManagerProxy.messages.in:
* UIProcess/mac/RemoteLayerTreeHost.messages.in:
* UIProcess/mac/SecItemShimProxy.messages.in:
* WebProcess/ApplicationCache/WebApplicationCacheManager.messages.in:
* WebProcess/Authentication/AuthenticationManager.h:
* WebProcess/Authentication/AuthenticationManager.messages.in:
* WebProcess/Cookies/WebCookieManager.messages.in:
* WebProcess/FullScreen/WebFullScreenManager.messages.in:
* WebProcess/Geolocation/WebGeolocationManager.messages.in:
* WebProcess/IconDatabase/WebIconDatabaseProxy.messages.in:
* WebProcess/KeyValueStorage/WebKeyValueStorageManager.messages.in:
* WebProcess/MediaCache/WebMediaCacheManager.messages.in:
* WebProcess/Network/NetworkProcessConnection.messages.in:
* WebProcess/Network/WebResourceLoader.messages.in:
* WebProcess/Notifications/WebNotificationManager.messages.in:
* WebProcess/Plugins/PluginProcessConnection.messages.in:
* WebProcess/Plugins/PluginProxy.messages.in:
* WebProcess/ResourceCache/WebResourceCacheManager.messages.in:
* WebProcess/WebCoreSupport/WebDatabaseManager.messages.in:
* WebProcess/WebPage/DrawingArea.messages.in:
* WebProcess/WebPage/EventDispatcher.messages.in:
* WebProcess/WebPage/WebInspector.messages.in:
* WebProcess/WebPage/WebPage.messages.in:
* WebProcess/WebPage/WebPageGroupProxy.messages.in:
* WebProcess/WebProcess.messages.in:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140605 268f45cc-cd09-0410-ab3c-d52691b4dbfc

60 files changed:
Source/WebKit2/ChangeLog
Source/WebKit2/NetworkProcess/NetworkConnectionToWebProcess.messages.in
Source/WebKit2/NetworkProcess/NetworkProcess.messages.in
Source/WebKit2/NetworkProcess/NetworkResourceLoader.messages.in
Source/WebKit2/PluginProcess/PluginControllerProxy.messages.in
Source/WebKit2/PluginProcess/PluginProcess.messages.in
Source/WebKit2/PluginProcess/WebProcessConnection.messages.in
Source/WebKit2/Scripts/webkit2/messages.py
Source/WebKit2/Scripts/webkit2/messages_unittest.py
Source/WebKit2/Scripts/webkit2/model.py
Source/WebKit2/Scripts/webkit2/parser.py
Source/WebKit2/Shared/Network/CustomProtocols/CustomProtocolManager.messages.in
Source/WebKit2/Shared/Plugins/NPObjectMessageReceiver.messages.in
Source/WebKit2/Shared/WebConnection.messages.in
Source/WebKit2/Shared/mac/SecItemShim.messages.in
Source/WebKit2/SharedWorkerProcess/SharedWorkerProcess.messages.in
Source/WebKit2/UIProcess/Downloads/DownloadProxy.messages.in
Source/WebKit2/UIProcess/DrawingAreaProxy.messages.in
Source/WebKit2/UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in
Source/WebKit2/UIProcess/Network/NetworkProcessProxy.messages.in
Source/WebKit2/UIProcess/Notifications/WebNotificationManagerProxy.messages.in
Source/WebKit2/UIProcess/Plugins/PluginProcessProxy.messages.in
Source/WebKit2/UIProcess/SharedWorkers/SharedWorkerProcessProxy.messages.in
Source/WebKit2/UIProcess/WebApplicationCacheManagerProxy.messages.in
Source/WebKit2/UIProcess/WebContext.messages.in
Source/WebKit2/UIProcess/WebCookieManagerProxy.messages.in
Source/WebKit2/UIProcess/WebDatabaseManagerProxy.messages.in
Source/WebKit2/UIProcess/WebFullScreenManagerProxy.messages.in
Source/WebKit2/UIProcess/WebGeolocationManagerProxy.messages.in
Source/WebKit2/UIProcess/WebIconDatabase.messages.in
Source/WebKit2/UIProcess/WebInspectorProxy.messages.in
Source/WebKit2/UIProcess/WebKeyValueStorageManagerProxy.messages.in
Source/WebKit2/UIProcess/WebMediaCacheManagerProxy.messages.in
Source/WebKit2/UIProcess/WebPageProxy.messages.in
Source/WebKit2/UIProcess/WebProcessProxy.messages.in
Source/WebKit2/UIProcess/WebResourceCacheManagerProxy.messages.in
Source/WebKit2/UIProcess/mac/RemoteLayerTreeHost.messages.in
Source/WebKit2/UIProcess/mac/SecItemShimProxy.messages.in
Source/WebKit2/WebProcess/ApplicationCache/WebApplicationCacheManager.messages.in
Source/WebKit2/WebProcess/Authentication/AuthenticationManager.h
Source/WebKit2/WebProcess/Authentication/AuthenticationManager.messages.in
Source/WebKit2/WebProcess/Cookies/WebCookieManager.messages.in
Source/WebKit2/WebProcess/FullScreen/WebFullScreenManager.messages.in
Source/WebKit2/WebProcess/Geolocation/WebGeolocationManager.messages.in
Source/WebKit2/WebProcess/IconDatabase/WebIconDatabaseProxy.messages.in
Source/WebKit2/WebProcess/KeyValueStorage/WebKeyValueStorageManager.messages.in
Source/WebKit2/WebProcess/MediaCache/WebMediaCacheManager.messages.in
Source/WebKit2/WebProcess/Network/NetworkProcessConnection.messages.in
Source/WebKit2/WebProcess/Network/WebResourceLoader.messages.in
Source/WebKit2/WebProcess/Notifications/WebNotificationManager.messages.in
Source/WebKit2/WebProcess/Plugins/PluginProcessConnection.messages.in
Source/WebKit2/WebProcess/Plugins/PluginProxy.messages.in
Source/WebKit2/WebProcess/ResourceCache/WebResourceCacheManager.messages.in
Source/WebKit2/WebProcess/WebCoreSupport/WebDatabaseManager.messages.in
Source/WebKit2/WebProcess/WebPage/DrawingArea.messages.in
Source/WebKit2/WebProcess/WebPage/EventDispatcher.messages.in
Source/WebKit2/WebProcess/WebPage/WebInspector.messages.in
Source/WebKit2/WebProcess/WebPage/WebPage.messages.in
Source/WebKit2/WebProcess/WebPage/WebPageGroupProxy.messages.in
Source/WebKit2/WebProcess/WebProcess.messages.in

index 9d3bb24..7482088 100644 (file)
@@ -1,3 +1,78 @@
+2013-01-23  Anders Carlsson  <andersca@apple.com>
+
+        Message receiver generation should work in terms of MessageReceiver objects
+        https://bugs.webkit.org/show_bug.cgi?id=107742
+
+        Reviewed by Beth Dakin.
+
+        The generated message receiver code should generate the MessageReceiver
+        member functions didReceiveMessage and didReceiveSyncMessage instead of
+        receiver specific member functions.
+
+        * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
+        * NetworkProcess/NetworkProcess.messages.in:
+        * NetworkProcess/NetworkResourceLoader.messages.in:
+        * PluginProcess/PluginControllerProxy.messages.in:
+        * PluginProcess/PluginProcess.messages.in:
+        * PluginProcess/WebProcessConnection.messages.in:
+        * Scripts/webkit2/messages.py:
+        (generate_message_handler):
+        * Scripts/webkit2/messages_unittest.py:
+        * Scripts/webkit2/model.py:
+        (MessageReceiver.__init__):
+        (MessageReceiver.has_attribute):
+        * Scripts/webkit2/parser.py:
+        (parse):
+        * Shared/Network/CustomProtocols/CustomProtocolManager.messages.in:
+        * Shared/Plugins/NPObjectMessageReceiver.messages.in:
+        * Shared/WebConnection.messages.in:
+        * Shared/mac/SecItemShim.messages.in:
+        * SharedWorkerProcess/SharedWorkerProcess.messages.in:
+        * UIProcess/Downloads/DownloadProxy.messages.in:
+        * UIProcess/DrawingAreaProxy.messages.in:
+        * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in:
+        * UIProcess/Network/NetworkProcessProxy.messages.in:
+        * UIProcess/Notifications/WebNotificationManagerProxy.messages.in:
+        * UIProcess/Plugins/PluginProcessProxy.messages.in:
+        * UIProcess/SharedWorkers/SharedWorkerProcessProxy.messages.in:
+        * UIProcess/WebApplicationCacheManagerProxy.messages.in:
+        * UIProcess/WebContext.messages.in:
+        * UIProcess/WebCookieManagerProxy.messages.in:
+        * UIProcess/WebDatabaseManagerProxy.messages.in:
+        * UIProcess/WebFullScreenManagerProxy.messages.in:
+        * UIProcess/WebGeolocationManagerProxy.messages.in:
+        * UIProcess/WebIconDatabase.messages.in:
+        * UIProcess/WebInspectorProxy.messages.in:
+        * UIProcess/WebKeyValueStorageManagerProxy.messages.in:
+        * UIProcess/WebMediaCacheManagerProxy.messages.in:
+        * UIProcess/WebPageProxy.messages.in:
+        * UIProcess/WebProcessProxy.messages.in:
+        * UIProcess/WebResourceCacheManagerProxy.messages.in:
+        * UIProcess/mac/RemoteLayerTreeHost.messages.in:
+        * UIProcess/mac/SecItemShimProxy.messages.in:
+        * WebProcess/ApplicationCache/WebApplicationCacheManager.messages.in:
+        * WebProcess/Authentication/AuthenticationManager.h:
+        * WebProcess/Authentication/AuthenticationManager.messages.in:
+        * WebProcess/Cookies/WebCookieManager.messages.in:
+        * WebProcess/FullScreen/WebFullScreenManager.messages.in:
+        * WebProcess/Geolocation/WebGeolocationManager.messages.in:
+        * WebProcess/IconDatabase/WebIconDatabaseProxy.messages.in:
+        * WebProcess/KeyValueStorage/WebKeyValueStorageManager.messages.in:
+        * WebProcess/MediaCache/WebMediaCacheManager.messages.in:
+        * WebProcess/Network/NetworkProcessConnection.messages.in:
+        * WebProcess/Network/WebResourceLoader.messages.in:
+        * WebProcess/Notifications/WebNotificationManager.messages.in:
+        * WebProcess/Plugins/PluginProcessConnection.messages.in:
+        * WebProcess/Plugins/PluginProxy.messages.in:
+        * WebProcess/ResourceCache/WebResourceCacheManager.messages.in:
+        * WebProcess/WebCoreSupport/WebDatabaseManager.messages.in:
+        * WebProcess/WebPage/DrawingArea.messages.in:
+        * WebProcess/WebPage/EventDispatcher.messages.in:
+        * WebProcess/WebPage/WebInspector.messages.in:
+        * WebProcess/WebPage/WebPage.messages.in:
+        * WebProcess/WebPage/WebPageGroupProxy.messages.in:
+        * WebProcess/WebProcess.messages.in:
+
 2013-01-23  Huang Dongsung  <luxtella@company100.net>
 
         Coordinated Graphics: remove CoordinatedLayerInfo::encode/decode.
index c1723e5..f2ff2c3 100644 (file)
@@ -22,7 +22,7 @@
 
 #if ENABLE(NETWORK_PROCESS)
 
-messages -> NetworkConnectionToWebProcess {
+messages -> NetworkConnectionToWebProcess LegacyReceiver {
 
     ScheduleResourceLoad(WebKit::NetworkResourceLoadParameters resourceLoadParameters)
     PerformSynchronousLoad(WebKit::NetworkResourceLoadParameters resourceLoadParameters) -> (WebCore::ResourceError error, WebCore::ResourceResponse response, CoreIPC::DataReference data) Delayed
index 2db79d2..e30ddc9 100644 (file)
@@ -22,7 +22,7 @@
 
 #if ENABLE(NETWORK_PROCESS)
 
-messages -> NetworkProcess {
+messages -> NetworkProcess LegacyReceiver {
     # Initializes the network process.
     InitializeNetworkProcess(WebKit::NetworkProcessCreationParameters processCreationParameters)
 
index b85c9a2..b9f8d4c 100644 (file)
@@ -22,7 +22,7 @@
 
 #if ENABLE(NETWORK_PROCESS)
 
-messages -> NetworkResourceLoader {
+messages -> NetworkResourceLoader LegacyReceiver {
     ReceivedAuthenticationCredential(WebCore::AuthenticationChallenge challenge, WebCore::Credential credential)
     ReceivedRequestToContinueWithoutAuthenticationCredential(WebCore::AuthenticationChallenge challenge)
     ReceivedAuthenticationCancellation(WebCore::AuthenticationChallenge challenge)
index ad66988..5bc34f7 100644 (file)
@@ -22,7 +22,7 @@
 
 #if ENABLE(PLUGIN_PROCESS)
 
-messages -> PluginControllerProxy {
+messages -> PluginControllerProxy LegacyReceiver {
     # Sent when the plug-in geometry changes.
     GeometryDidChange(WebCore::IntSize pluginSize, WebCore::IntRect clipRect, WebCore::AffineTransform pluginToRootViewTransform, float scaleFactor, WebKit::ShareableBitmap::Handle backingStoreHandle)
 
index 41226b1..df93b11 100644 (file)
@@ -22,7 +22,7 @@
 
 #if ENABLE(PLUGIN_PROCESS)
 
-messages -> PluginProcess {
+messages -> PluginProcess LegacyReceiver {
     # Initializes the plug-in process.
     InitializePluginProcess(WebKit::PluginProcessCreationParameters processCreationParameters)
     
index effb979..b4801cf 100644 (file)
@@ -22,7 +22,7 @@
 
 #if ENABLE(PLUGIN_PROCESS)
 
-messages -> WebProcessConnection {
+messages -> WebProcessConnection LegacyReceiver {
     # Creates a plug-in instance using the given creation parameters.
     CreatePlugin(WebKit::PluginCreationParameters pluginCreationParameters) -> (bool creationResult, bool wantsWheelEvents, uint32_t remoteLayerClientID) Delayed
 
index 559478c..996efa2 100644 (file)
@@ -24,6 +24,7 @@ import collections
 import re
 from webkit2 import parser
 
+LEGACY_RECEIVER_ATTRIBUTE = 'LegacyReceiver'
 DELAYED_ATTRIBUTE = 'Delayed'
 DISPATCH_ON_CONNECTION_QUEUE_ATTRIBUTE = 'DispatchOnConnectionQueue'
 VARIADIC_ATTRIBUTE = 'Variadic'
@@ -560,7 +561,11 @@ def generate_message_handler(file):
         result.append('}\n\n')
 
     if async_messages:
-        result.append('void %s::didReceive%sMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::MessageDecoder& decoder)\n' % (receiver.name, receiver.name))
+        if receiver.has_attribute(LEGACY_RECEIVER_ATTRIBUTE):
+            result.append('void %s::didReceive%sMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::MessageDecoder& decoder)\n' % (receiver.name, receiver.name))
+        else:
+            result.append('void %s::didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::MessageDecoder& decoder)\n' % (receiver.name))
+
         result.append('{\n')
         result += [async_message_statement(receiver, message) for message in async_messages]
         result.append('    ASSERT_NOT_REACHED();\n')
@@ -568,7 +573,10 @@ def generate_message_handler(file):
 
     if sync_messages:
         result.append('\n')
-        result.append('void %s::didReceiveSync%sMessage(CoreIPC::Connection*%s, CoreIPC::MessageID, CoreIPC::MessageDecoder& decoder, OwnPtr<CoreIPC::MessageEncoder>& replyEncoder)\n' % (receiver.name, receiver.name, ' connection' if sync_delayed_messages else ''))
+        if receiver.has_attribute(LEGACY_RECEIVER_ATTRIBUTE):
+            result.append('void %s::didReceiveSync%sMessage(CoreIPC::Connection*%s, CoreIPC::MessageID, CoreIPC::MessageDecoder& decoder, OwnPtr<CoreIPC::MessageEncoder>& replyEncoder)\n' % (receiver.name, receiver.name, ' connection' if sync_delayed_messages else ''))
+        else:
+            result.append('void %s::didReceiveSyncMessage(CoreIPC::Connection*%s,CoreIPC::MessageID, CoreIPC::MessageDecoder& decoder, OwnPtr<CoreIPC::MessageEncoder>& replyEncoder)\n' % (receiver.name, ' connection' if sync_delayed_messages else ''))
         result.append('{\n')
         result += [sync_message_statement(receiver, message) for message in sync_messages]
         result.append('    ASSERT_NOT_REACHED();\n')
index 6b1ebfd..ce0b66d 100644 (file)
@@ -52,7 +52,7 @@ _messages_file_contents = """# Copyright (C) 2010 Apple Inc. All rights reserved
 
 #if ENABLE(WEBKIT2)
 
-messages -> WebPage {
+messages -> WebPage LegacyReceiver {
     LoadURL(WTF::String url)
 #if ENABLE(TOUCH_EVENTS)
     TouchEvent(WebKit::WebTouchEvent event)
index b10416c..486b509 100644 (file)
@@ -24,8 +24,9 @@ import itertools
 
 
 class MessageReceiver(object):
-    def __init__(self, name, messages, condition):
+    def __init__(self, name, attributes, messages, condition):
         self.name = name
+        self.attributes = frozenset(attributes or [])
         self.messages = messages
         self.condition = condition
 
@@ -33,6 +34,8 @@ class MessageReceiver(object):
         return itertools.chain((parameter for message in self.messages for parameter in message.parameters),
             (reply_parameter for message in self.messages if message.reply_parameters for reply_parameter in message.reply_parameters))
 
+    def has_attribute(self, attribute):
+        return attribute in self.attributes
 
 class Message(object):
     def __init__(self, name, parameters, reply_parameters, attributes, condition):
index c40080f..6a651e2 100644 (file)
@@ -26,17 +26,20 @@ from webkit2 import model
 
 
 def parse(file):
+    receiver_attributes = None
     destination = None
     messages = []
     condition = None
     master_condition = None
     for line in file:
-        match = re.search(r'messages -> ([A-Za-z_0-9]+) {', line)
+        match = re.search(r'messages -> (?P<destination>[A-Za-z_0-9]+) \s*(?:(?P<attributes>.*?)\s+)?{', line)
         if match:
+            receiver_attributes = parse_attributes_string(match.group('attributes'))
+
             if condition:
                 master_condition = condition
                 condition = None
-            destination = match.group(1)
+            destination = match.group('destination')
             continue
         if line.startswith('#'):
             if line.startswith('#if '):
@@ -66,7 +69,7 @@ def parse(file):
                 reply_parameters = None
 
             messages.append(model.Message(name, parameters, reply_parameters, attributes, condition))
-    return model.MessageReceiver(destination, messages, master_condition)
+    return model.MessageReceiver(destination, receiver_attributes, messages, master_condition)
 
 
 def parse_attributes_string(attributes_string):
index 1bc0cc9..8fb1c2d 100644 (file)
@@ -22,7 +22,7 @@
 
 #if ENABLE(CUSTOM_PROTOCOLS)
 
-messages -> CustomProtocolManager {
+messages -> CustomProtocolManager LegacyReceiver {
     DidFailWithError(uint64_t customProtocolID, WebCore::ResourceError error)
     DidLoadData(uint64_t customProtocolID, CoreIPC::DataReference data)
     DidReceiveResponse(uint64_t customProtocolID, WebCore::ResourceResponse response, uint32_t cacheStoragePolicy)
index d81ffc4..e31394d 100644 (file)
@@ -22,7 +22,7 @@
 
 #if ENABLE(PLUGIN_PROCESS)
 
-messages -> NPObjectMessageReceiver {
+messages -> NPObjectMessageReceiver LegacyReceiver {
     Deallocate() -> ()
     HasMethod(WebKit::NPIdentifierData methodName) -> (bool returnValue)
     Invoke(WebKit::NPIdentifierData methodName, Vector<WebKit::NPVariantData> argumentsData) -> (bool returnValue, WebKit::NPVariantData resultData)
index 65ec5b8..efc8ca6 100644 (file)
@@ -20,6 +20,6 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> WebConnection {
+messages -> WebConnection LegacyReceiver {
     HandleMessage() Variadic
 }
index 9df6c2d..dd3fb9c 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> SecItemShim {
+messages -> SecItemShim LegacyReceiver {
 
 #if USE(SECURITY_FRAMEWORK)
     SecItemResponse(uint64_t requestID, WebKit::SecItemResponseData response) DispatchOnConnectionQueue
index 789bbb3..fd4856b 100644 (file)
@@ -22,7 +22,7 @@
 
 #if ENABLE(SHARED_WORKER_PROCESS)
 
-messages -> SharedWorkerProcess {
+messages -> SharedWorkerProcess LegacyReceiver {
     # Initializes the shared worker process.
     InitializeSharedWorkerProcess(WebKit::SharedWorkerProcessCreationParameters processCreationParameters)
     
index d725599..0f44d75 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> DownloadProxy {
+messages -> DownloadProxy LegacyReceiver {
     DidStart(WebCore::ResourceRequest request)
     DidReceiveAuthenticationChallenge(WebCore::AuthenticationChallenge challenge, uint64_t challengeID)
 
index b3f02af..4910039 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> DrawingAreaProxy {
+messages -> DrawingAreaProxy LegacyReceiver {
     Update(uint64_t stateID, WebKit::UpdateInfo updateInfo)
     DidUpdateBackingStoreState(uint64_t backingStoreStateID, WebKit::UpdateInfo updateInfo, WebKit::LayerTreeContext context)
 #if USE(ACCELERATED_COMPOSITING)
index 7aef0e0..b4ce594 100644 (file)
@@ -22,7 +22,7 @@
 
 #if ENABLE(CUSTOM_PROTOCOLS)
 
-messages -> CustomProtocolManagerProxy {
+messages -> CustomProtocolManagerProxy LegacyReceiver {
     StartLoading(uint64_t customProtocolID, WebCore::ResourceRequest request)
     StopLoading(uint64_t customProtocolID)
 }
index 379b108..588c28d 100644 (file)
@@ -22,7 +22,7 @@
 
 #if ENABLE(NETWORK_PROCESS)
 
-messages -> NetworkProcessProxy {
+messages -> NetworkProcessProxy LegacyReceiver {
     DidCreateNetworkConnectionToWebProcess(CoreIPC::Attachment connectionIdentifier)
 }
 
index a06e928..66091c0 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> WebNotificationManagerProxy {
+messages -> WebNotificationManagerProxy LegacyReceiver {
     Cancel(uint64_t notificationID);
     DidDestroyNotification(uint64_t notificationID);
     ClearNotifications(Vector<uint64_t> notificationIDs);
index 183cb0c..424d83b 100644 (file)
@@ -22,7 +22,7 @@
 
 #if ENABLE(PLUGIN_PROCESS)
 
-messages -> PluginProcessProxy {
+messages -> PluginProcessProxy LegacyReceiver {
     DidCreateWebProcessConnection(CoreIPC::Attachment connectionIdentifier, bool supportsAsynchronousPluginInitialization)
 
     DidGetSitesWithData(Vector<WTF::String> sites, uint64_t callbackID)
index ec98b6d..f5dc4ea 100644 (file)
@@ -22,7 +22,7 @@
 
 #if ENABLE(SHARED_WORKER_PROCESS)
 
-messages -> SharedWorkerProcessProxy {
+messages -> SharedWorkerProcessProxy LegacyReceiver {
     DidCreateWebProcessConnection(CoreIPC::Attachment connectionIdentifier)
 }
 
index 2aa0f67..473a8f1 100644 (file)
@@ -20,6 +20,6 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> WebApplicationCacheManagerProxy {
+messages -> WebApplicationCacheManagerProxy LegacyReceiver {
     DidGetApplicationCacheOrigins(Vector<WebKit::SecurityOriginData> originIdentifiers, uint64_t callbackID);
 }
index f2edb1d..a2a5990 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> WebContext {
+messages -> WebContext LegacyReceiver {
 
     # Visited link provider messages.
     AddVisitedLinkHash(uint64_t linkHash)
index 2ae0545..29241a1 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> WebCookieManagerProxy {
+messages -> WebCookieManagerProxy LegacyReceiver {
     DidGetHostnamesWithCookies(Vector<WTF::String> hostnames, uint64_t callbackID);
     DidGetHTTPCookieAcceptPolicy(uint32_t policy, uint64_t callbackID);
     
index 503275f..3e857a4 100644 (file)
@@ -22,7 +22,7 @@
 
 #if ENABLE(SQL_DATABASE)
 
-messages -> WebDatabaseManagerProxy {
+messages -> WebDatabaseManagerProxy LegacyReceiver {
     DidGetDatabasesByOrigin(Vector<WebKit::OriginAndDatabases> originAndDatabases, uint64_t callbackID);
     DidGetDatabaseOrigins(Vector<WTF::String> originIdentifiers, uint64_t callbackID)
     DidModifyOrigin(WTF::String originIdentifier)
index 97e4613..5e4b102 100644 (file)
@@ -21,7 +21,7 @@
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 #if ENABLE(FULLSCREEN_API)
-messages -> WebFullScreenManagerProxy {
+messages -> WebFullScreenManagerProxy LegacyReceiver {
     SupportsFullScreen(bool withKeyboard) -> (bool supportsFullScreen)
     EnterFullScreen()
     ExitFullScreen()
index fe5a273..be1bccf 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> WebGeolocationManagerProxy {
+messages -> WebGeolocationManagerProxy LegacyReceiver {
     StartUpdating();
     StopUpdating();
 }
index 400adb0..fb84950 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> WebIconDatabase {
+messages -> WebIconDatabase LegacyReceiver {
     RetainIconForPageURL(WTF::String pageURL)
     ReleaseIconForPageURL(WTF::String pageURL)
     SetIconURLForPageURL(WTF::String iconURL, WTF::String pageURL)
index 27a81d8..de0e238 100644 (file)
@@ -22,7 +22,7 @@
 
 #if ENABLE(INSPECTOR)
 
-messages -> WebInspectorProxy {
+messages -> WebInspectorProxy LegacyReceiver {
     CreateInspectorPage() -> (uint64_t inspectorPageID, WebKit::WebPageCreationParameters inspectorPageParameters)
     DidLoadInspectorPage()
     DidClose()
index b76389a..55b453a 100644 (file)
@@ -20,6 +20,6 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> WebKeyValueStorageManagerProxy {
+messages -> WebKeyValueStorageManagerProxy LegacyReceiver {
     DidGetKeyValueStorageOrigins(Vector<WebKit::SecurityOriginData> originIdentifiers, uint64_t callbackID);
 }
index 7929064..5e22335 100644 (file)
@@ -20,6 +20,6 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> WebMediaCacheManagerProxy {
+messages -> WebMediaCacheManagerProxy LegacyReceiver {
     DidGetHostnamesWithMediaCache(Vector<WTF::String> hostnames, uint64_t callbackID);
 }
index 791af52..011ed3f 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> WebPageProxy {
+messages -> WebPageProxy LegacyReceiver {
     # UI messages
     CreateNewPage(WebCore::ResourceRequest request, WebCore::WindowFeatures windowFeatures, uint32_t modifiers, int32_t mouseButton) -> (uint64_t newPageID, WebKit::WebPageCreationParameters newPageParameters)
     ShowPage()
index 8410fa2..abbc190 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> WebProcessProxy {
+messages -> WebProcessProxy LegacyReceiver {
 
     # History client messages.
     DidNavigateWithNavigationData(uint64_t pageID, WebKit::WebNavigationDataStore store, uint64_t frameID)
index c1e73a9..b2bbff2 100644 (file)
@@ -20,6 +20,6 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> WebResourceCacheManagerProxy {
+messages -> WebResourceCacheManagerProxy LegacyReceiver {
     DidGetCacheOrigins(Vector<WebKit::SecurityOriginData> originIdentifiers, uint64_t callbackID)
 }
index d6c2172..82e0f22 100644 (file)
@@ -20,6 +20,6 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> RemoteLayerTreeHost {
+messages -> RemoteLayerTreeHost LegacyReceiver {
     void Commit(WebKit::RemoteLayerTreeTransaction transaction)
 }
index 4559c21..c87fdab 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> SecItemShimProxy {
+messages -> SecItemShimProxy LegacyReceiver {
 
 #if USE(SECURITY_FRAMEWORK)
     SecItemRequest(uint64_t requestID, WebKit::SecItemRequestData request) DispatchOnConnectionQueue
index bf21d9d..a8d375e 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> WebApplicationCacheManager {
+messages -> WebApplicationCacheManager LegacyReceiver {
     void GetApplicationCacheOrigins(uint64_t callbackID)
     void DeleteEntriesForOrigin(WebKit::SecurityOriginData originIdentifier)
     void DeleteAllEntries()
index 90262a9..4072838 100644 (file)
@@ -29,6 +29,7 @@
 #include "MessageReceiver.h"
 #include "NetworkProcessSupplement.h"
 #include "WebProcessSupplement.h"
+#include <WebCore/AuthenticationChallenge.h>
 #include <wtf/Forward.h>
 #include <wtf/HashMap.h>
 
index bb1cc30..422d9ac 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> AuthenticationManager {
+messages -> AuthenticationManager LegacyReceiver {
     void UseCredentialForChallenge(uint64_t challengeID, WebCore::Credential credential, WebKit::PlatformCertificateInfo certificate);
     void ContinueWithoutCredentialForChallenge(uint64_t challengeID);
     void CancelChallenge(uint64_t challengeID);
index 0ae1155..38ce201 100644 (file)
@@ -23,7 +23,7 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
  
- messages -> WebCookieManager {
+ messages -> WebCookieManager LegacyReceiver {
     void GetHostnamesWithCookies(uint64_t callbackID)
     void DeleteCookiesForHostname(WTF::String hostname)
     void DeleteAllCookies()
index 239d33c..f4e0afb 100644 (file)
@@ -21,7 +21,7 @@
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 #if ENABLE(FULLSCREEN_API)
-messages -> WebFullScreenManager {
+messages -> WebFullScreenManager LegacyReceiver {
     RequestExitFullScreen()
     WillEnterFullScreen()
     DidEnterFullScreen()
index 898d1ae..967db3b 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> WebGeolocationManager {
+messages -> WebGeolocationManager LegacyReceiver {
     DidChangePosition(WebKit::WebGeolocationPosition::Data position);
     DidFailToDeterminePosition(WTF::String errorMessage);
 }
index 049a0d9..9fdbf83 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> WebIconDatabaseProxy {
+messages -> WebIconDatabaseProxy LegacyReceiver {
     URLImportFinished()
     ReceivedIconLoadDecision(int loadDecision, uint64_t callbackID)
 }
index 2f0d648..450b318 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> WebKeyValueStorageManager {
+messages -> WebKeyValueStorageManager LegacyReceiver {
     void GetKeyValueStorageOrigins(uint64_t callbackID)
     void DeleteEntriesForOrigin(WebKit::SecurityOriginData originIdentifier)
     void DeleteAllEntries()
index 5eee8cc..914c88f 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> WebMediaCacheManager {
+messages -> WebMediaCacheManager LegacyReceiver {
     void GetHostnamesWithMediaCache(uint64_t callbackID)
     void ClearCacheForHostname(WTF::String hostname)
     void ClearCacheForAllHostnames()
index 6b375a5..f177383 100644 (file)
@@ -22,7 +22,7 @@
 
 #if ENABLE(NETWORK_PROCESS)
 
-messages -> NetworkProcessConnection {
+messages -> NetworkProcessConnection LegacyReceiver {
 
 }
 
index da08b4a..82dc32e 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> WebResourceLoader {
+messages -> WebResourceLoader LegacyReceiver {
 
     CancelResourceLoader()
 
index b88f26c..18a493e 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> WebNotificationManager {
+messages -> WebNotificationManager LegacyReceiver {
     DidShowNotification(uint64_t notificationID);
     DidClickNotification(uint64_t notificationID);
     DidCloseNotifications(Vector<uint64_t> notificationIDs);
index 5573f3b..a13fa81 100644 (file)
@@ -22,7 +22,7 @@
 
 #if ENABLE(PLUGIN_PROCESS)
 
-messages -> PluginProcessConnection {
+messages -> PluginProcessConnection LegacyReceiver {
     # Set a global JavaScript exception.
     SetException(WTF::String exceptionString) -> ()
 }
index 453c0f1..211a259 100644 (file)
@@ -22,7 +22,7 @@
 
 #if ENABLE(PLUGIN_PROCESS)
 
-messages -> PluginProxy {
+messages -> PluginProxy LegacyReceiver {
     # Asks the web process to load a URL.
     LoadURL(uint64_t requestID, WTF::String method, WTF::String urlString, WTF::String target, WebCore::HTTPHeaderMap headerFields, Vector<uint8_t> httpBody, bool allowPopups);
 
index 336b253..63c3dec 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> WebResourceCacheManager {
+messages -> WebResourceCacheManager LegacyReceiver {
     void GetCacheOrigins(uint64_t callbackID)
     void ClearCacheForOrigin(WebKit::SecurityOriginData originIdentifier, uint32_t cachesToClear)
     void ClearCacheForAllOrigins(uint32_t cachesToClear)
index a344c00..dbf074b 100644 (file)
@@ -22,7 +22,7 @@
 
 #if ENABLE(SQL_DATABASE)
 
-messages -> WebDatabaseManager {
+messages -> WebDatabaseManager LegacyReceiver {
     void GetDatabasesByOrigin(uint64_t callbackID)
     void GetDatabaseOrigins(uint64_t callbackID)
     void DeleteDatabaseWithNameForOrigin(WTF::String databaseIdentifier, WTF::String originIdentifier)
index fe98c73..ba7e6e6 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> DrawingArea {
+messages -> DrawingArea LegacyReceiver {
     UpdateBackingStoreState(uint64_t backingStoreStateID, bool respondImmediately, float deviceScaleFactor, WebCore::IntSize size, WebCore::IntSize scrollOffset)
     DidUpdate()
     SuspendPainting()
index 94cd5e5..07bf661 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> EventDispatcher {
+messages -> EventDispatcher LegacyReceiver {
     WheelEvent(uint64_t pageID, WebKit::WebWheelEvent event, bool canGoBack, bool canGoForward) DispatchOnConnectionQueue
 
 #if ENABLE(GESTURE_EVENTS)
index 20ee989..99490d4 100644 (file)
@@ -22,7 +22,7 @@
 
 #if ENABLE(INSPECTOR)
 
-messages -> WebInspector {
+messages -> WebInspector LegacyReceiver {
     Show()
     Close()
     SetAttachedWindow(bool attached)
index e32892c..17ad5e4 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> WebPage {
+messages -> WebPage LegacyReceiver LegacyReceiver {
     SetActive(bool active)
     SetFocused(bool focused)
     SetInitialFocus(bool forward, bool isKeyboardEventValid, WebKit::WebKeyboardEvent event)
index 8ba527a..3ad6cfc 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> WebPageGroupProxy {
+messages -> WebPageGroupProxy LegacyReceiver {
     AddUserStyleSheet(WebCore::UserStyleSheet userStyleSheet);
     AddUserScript(WebCore::UserScript userScript);
     RemoveAllUserStyleSheets();
index f6c3bda..a77e6f6 100644 (file)
@@ -20,7 +20,7 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-messages -> WebProcess {
+messages -> WebProcess LegacyReceiver {
     # Initialize the WebProcess. 
     InitializeWebProcess(WebKit::WebProcessCreationParameters processCreationParameters, WebKit::WebContextUserMessageEncoder initializationUserData) Variadic