[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

andersca at apple.com andersca at apple.com
Wed Dec 22 15:48:33 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit bcdfed813d7c0dbdf6755ba43da8133d6e3edc94
Author: andersca at apple.com <andersca at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Fri Nov 12 19:10:41 2010 +0000

    Allow MessageSender to override sendMessage
    https://bugs.webkit.org/show_bug.cgi?id=49457
    
    Reviewed by Sam Weinig.
    
    Change MessageSender::send to encode the message and then call sendMessage.
    This allows for clients to override sendMessage, something which WebProcessProxy
    will be able to take advantage of.
    
    * Platform/CoreIPC/MessageSender.h:
    (CoreIPC::MessageSender::send):
    (CoreIPC::MessageSender::sendMessage):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@71932 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebKit2/ChangeLog b/WebKit2/ChangeLog
index b6c8fcd..ff62b29 100644
--- a/WebKit2/ChangeLog
+++ b/WebKit2/ChangeLog
@@ -2,6 +2,21 @@
 
         Reviewed by Sam Weinig.
 
+        Allow MessageSender to override sendMessage
+        https://bugs.webkit.org/show_bug.cgi?id=49457
+
+        Change MessageSender::send to encode the message and then call sendMessage.
+        This allows for clients to override sendMessage, something which WebProcessProxy
+        will be able to take advantage of.
+
+        * Platform/CoreIPC/MessageSender.h:
+        (CoreIPC::MessageSender::send):
+        (CoreIPC::MessageSender::sendMessage):
+
+2010-11-12  Anders Carlsson  <andersca at apple.com>
+
+        Reviewed by Sam Weinig.
+
         CoreIPC cleanup
         https://bugs.webkit.org/show_bug.cgi?id=49455
 
diff --git a/WebKit2/Platform/CoreIPC/MessageSender.h b/WebKit2/Platform/CoreIPC/MessageSender.h
index 026066e..5714553 100644
--- a/WebKit2/Platform/CoreIPC/MessageSender.h
+++ b/WebKit2/Platform/CoreIPC/MessageSender.h
@@ -33,17 +33,25 @@ namespace CoreIPC {
     
 template<typename T> class MessageSender {
 public:
+    template<typename U> bool send(const U& message)
+    {
+        return send(message, static_cast<T*>(this)->destinationID());
+    }
+
     template<typename U> bool send(const U& message, uint64_t destinationID)
     {
+        OwnPtr<ArgumentEncoder> argumentEncoder = ArgumentEncoder::create(destinationID);
+        argumentEncoder->encode(message);
+        
+        return static_cast<T*>(this)->sendMessage(MessageID(U::messageID), argumentEncoder.release());
+    }
+    
+    bool sendMessage(MessageID messageID, PassOwnPtr<ArgumentEncoder> argumentEncoder)
+    {
         Connection* connection = static_cast<T*>(this)->connection();
         ASSERT(connection);
 
-        return connection->send(message, destinationID);
-    }
-
-    template<typename U> bool send(const U& message)
-    {
-        return send(message, static_cast<T*>(this)->destinationID());
+        return connection->sendMessage(messageID, argumentEncoder);
     }
 };
 

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list