summaryrefslogtreecommitdiff
path: root/Source/WebKit2/Shared/WebConnection.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2012-10-18 10:55:06 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2012-10-18 10:55:06 +0200
commitee4c86d1990a9e26277a6948e7027ad8d525ebfa (patch)
tree1e2d3408cd097606571f40ab63353c27bcb7dd5c /Source/WebKit2/Shared/WebConnection.cpp
parentd882bec96d0d30aeeda2141bfadfca7f038ee862 (diff)
downloadqtwebkit-ee4c86d1990a9e26277a6948e7027ad8d525ebfa.tar.gz
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
Diffstat (limited to 'Source/WebKit2/Shared/WebConnection.cpp')
-rw-r--r--Source/WebKit2/Shared/WebConnection.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/WebKit2/Shared/WebConnection.cpp b/Source/WebKit2/Shared/WebConnection.cpp
index d941318db..9743a78c7 100644
--- a/Source/WebKit2/Shared/WebConnection.cpp
+++ b/Source/WebKit2/Shared/WebConnection.cpp
@@ -53,7 +53,7 @@ void WebConnection::postMessage(const String& messageName, APIObject* messageBod
if (!m_connection)
return;
- OwnPtr<CoreIPC::ArgumentEncoder> messageData = CoreIPC::ArgumentEncoder::create(0);
+ OwnPtr<CoreIPC::ArgumentEncoder> messageData = CoreIPC::ArgumentEncoder::create();
messageData->encode(messageName);
encodeMessageBody(messageData.get(), messageBody);
@@ -62,14 +62,14 @@ void WebConnection::postMessage(const String& messageName, APIObject* messageBod
void WebConnection::handleMessage(const CoreIPC::DataReference& messageData)
{
- CoreIPC::ArgumentDecoder messageDecoder(messageData.data(), messageData.size());
+ OwnPtr<CoreIPC::ArgumentDecoder> decoder = CoreIPC::ArgumentDecoder::create(messageData.data(), messageData.size());
String messageName;
- if (!messageDecoder.decode(messageName))
+ if (!decoder->decode(messageName))
return;
RefPtr<APIObject> messageBody;
- if (!decodeMessageBody(&messageDecoder, messageBody))
+ if (!decodeMessageBody(decoder.get(), messageBody))
return;
m_client.didReceiveMessage(this, messageName, messageBody.get());