From ee4c86d1990a9e26277a6948e7027ad8d525ebfa Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Thu, 18 Oct 2012 10:55:06 +0200 Subject: Imported WebKit commit 795dcd25a9649fccaf1c9b685f6e2ffedaf7e620 (http://svn.webkit.org/repository/webkit/trunk@131718) New snapshot that includes the return of -fkeep-memory at link time to reduce memory pressure as well as modularized documentation --- .../WebKit2/Scripts/webkit2/messages_unittest.py | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'Source/WebKit2/Scripts/webkit2/messages_unittest.py') diff --git a/Source/WebKit2/Scripts/webkit2/messages_unittest.py b/Source/WebKit2/Scripts/webkit2/messages_unittest.py index dd9fbecc3..c27e2588c 100644 --- a/Source/WebKit2/Scripts/webkit2/messages_unittest.py +++ b/Source/WebKit2/Scripts/webkit2/messages_unittest.py @@ -315,6 +315,7 @@ _expected_header = """/* #include "Arguments.h" #include "Connection.h" +#include "MessageEncoder.h" #include "MessageID.h" #include "Plugin.h" #include @@ -323,7 +324,6 @@ _expected_header = """/* #include namespace CoreIPC { - class ArgumentEncoder; class Connection; class DummyType; class MachPort; @@ -467,14 +467,14 @@ struct GetPlugins : CoreIPC::Arguments1 { struct GetPluginProcessConnection : CoreIPC::Arguments1 { static const Kind messageID = GetPluginProcessConnectionID; struct DelayedReply : public ThreadSafeRefCounted { - DelayedReply(PassRefPtr, PassOwnPtr); + DelayedReply(PassRefPtr, PassOwnPtr); ~DelayedReply(); bool send(const CoreIPC::Connection::Handle& connectionHandle); private: RefPtr m_connection; - OwnPtr m_arguments; + OwnPtr m_encoder; }; typedef CoreIPC::Arguments1 Reply; @@ -488,14 +488,14 @@ struct GetPluginProcessConnection : CoreIPC::Arguments1 { struct TestMultipleAttributes : CoreIPC::Arguments0 { static const Kind messageID = TestMultipleAttributesID; struct DelayedReply : public ThreadSafeRefCounted { - DelayedReply(PassRefPtr, PassOwnPtr); + DelayedReply(PassRefPtr, PassOwnPtr); ~DelayedReply(); bool send(); private: RefPtr m_connection; - OwnPtr m_arguments; + OwnPtr m_encoder; }; typedef CoreIPC::Arguments0 Reply; @@ -640,9 +640,9 @@ namespace Messages { namespace WebPage { -GetPluginProcessConnection::DelayedReply::DelayedReply(PassRefPtr connection, PassOwnPtr arguments) +GetPluginProcessConnection::DelayedReply::DelayedReply(PassRefPtr connection, PassOwnPtr arguments) : m_connection(connection) - , m_arguments(arguments) + , m_encoder(arguments) { } @@ -653,16 +653,16 @@ GetPluginProcessConnection::DelayedReply::~DelayedReply() bool GetPluginProcessConnection::DelayedReply::send(const CoreIPC::Connection::Handle& connectionHandle) { - ASSERT(m_arguments); - m_arguments->encode(connectionHandle); - bool result = m_connection->sendSyncReply(m_arguments.release()); + ASSERT(m_encoder); + m_encoder->encode(connectionHandle); + bool result = m_connection->sendSyncReply(static_pointer_cast(m_arguments.release())); m_connection = nullptr; return result; } -TestMultipleAttributes::DelayedReply::DelayedReply(PassRefPtr connection, PassOwnPtr arguments) +TestMultipleAttributes::DelayedReply::DelayedReply(PassRefPtr connection, PassOwnPtr arguments) : m_connection(connection) - , m_arguments(arguments) + , m_encoder(arguments) { } @@ -673,8 +673,8 @@ TestMultipleAttributes::DelayedReply::~DelayedReply() bool TestMultipleAttributes::DelayedReply::send() { - ASSERT(m_arguments); - bool result = m_connection->sendSyncReply(m_arguments.release()); + ASSERT(m_encoder); + bool result = m_connection->sendSyncReply(static_pointer_cast(m_arguments.release())); m_connection = nullptr; return result; } @@ -755,7 +755,7 @@ void WebPage::didReceiveWebPageMessage(CoreIPC::Connection*, CoreIPC::MessageID ASSERT_NOT_REACHED(); } -void WebPage::didReceiveSyncWebPageMessage(CoreIPC::Connection* connection, CoreIPC::MessageID messageID, CoreIPC::ArgumentDecoder* arguments, OwnPtr& reply) +void WebPage::didReceiveSyncWebPageMessage(CoreIPC::Connection* connection, CoreIPC::MessageID messageID, CoreIPC::ArgumentDecoder* arguments, OwnPtr& reply) { switch (messageID.get()) { case Messages::WebPage::CreatePluginID: -- cgit v1.2.1