diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-18 12:56:04 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-18 12:56:04 +0000 |
commit | 9cedd561d1cdc80c8c2212e8c36e4dd6cb78c149 (patch) | |
tree | 5a47934e1498a5823c8c55a34d386c77a5697c29 /webkit/glue/webdevtoolsclient_impl.cc | |
parent | 59d9535e13048aacde05e4c50f1c97d5d3ecfcdf (diff) | |
download | chromium_src-9cedd561d1cdc80c8c2212e8c36e4dd6cb78c149.zip chromium_src-9cedd561d1cdc80c8c2212e8c36e4dd6cb78c149.tar.gz chromium_src-9cedd561d1cdc80c8c2212e8c36e4dd6cb78c149.tar.bz2 |
Make Rpc dispatch in DevTools static, remove redundant JSON parsing.
Review URL: http://codereview.chromium.org/44007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11957 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webdevtoolsclient_impl.cc')
-rw-r--r-- | webkit/glue/webdevtoolsclient_impl.cc | 9 |
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; } |