summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webdevtoolsclient_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/webdevtoolsclient_impl.cc')
-rw-r--r--webkit/glue/webdevtoolsclient_impl.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/webkit/glue/webdevtoolsclient_impl.cc b/webkit/glue/webdevtoolsclient_impl.cc
index dbbe2d8..49ba41f 100644
--- a/webkit/glue/webdevtoolsclient_impl.cc
+++ b/webkit/glue/webdevtoolsclient_impl.cc
@@ -11,6 +11,7 @@
#include "Node.h"
#include "Page.h"
#include "PlatformString.h"
+#include <wtf/OwnPtr.h>
#undef LOG
#include "base/json_reader.h"
@@ -190,11 +191,13 @@ void WebDevToolsClientImpl::EvaluateJs(const std::string& expr) {
void WebDevToolsClientImpl::DispatchMessageFromAgent(
const std::string& raw_msg) {
- if (dom_agent_delegate_dispatch_.Dispatch(this, raw_msg))
+ OwnPtr<ListValue> message(
+ static_cast<ListValue*>(DevToolsRpc::ParseMessage(raw_msg)));
+ if (DomAgentDelegateDispatch::Dispatch(this, *message.get()))
return;
- if (net_agent_delegate_dispatch_.Dispatch(this, raw_msg))
+ if (NetAgentDelegateDispatch::Dispatch(this, *message.get()))
return;
- if (tools_agent_delegate_dispatch_.Dispatch(this, raw_msg))
+ if (ToolsAgentDelegateDispatch::Dispatch(this, *message.get()))
return;
}