Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: webkit/glue/webdevtoolsagent_impl.cc

Issue 115862: DevTools: pass class and method name as arguments to RPC messages (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/webdevtoolsagent_impl.h ('k') | webkit/glue/webdevtoolsclient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webdevtoolsagent_impl.cc
===================================================================
--- webkit/glue/webdevtoolsagent_impl.cc (revision 17071)
+++ webkit/glue/webdevtoolsagent_impl.cc (working copy)
@@ -231,10 +231,13 @@
}
void WebDevToolsAgentImpl::DispatchMessageFromClient(
+ const std::string& class_name,
+ const std::string& method_name,
const std::string& raw_msg) {
OwnPtr<ListValue> message(
static_cast<ListValue*>(DevToolsRpc::ParseMessage(raw_msg)));
- if (ToolsAgentDispatch::Dispatch(this, *message.get())) {
+ if (ToolsAgentDispatch::Dispatch(
+ this, class_name, method_name, *message.get())) {
return;
}
@@ -244,12 +247,13 @@
if (debugger_agent_impl_.get() &&
DebuggerAgentDispatch::Dispatch(
- debugger_agent_impl_.get(),
+ debugger_agent_impl_.get(), class_name, method_name,
*message.get())) {
return;
}
- if (DomAgentDispatch::Dispatch(dom_agent_impl_.get(), *message.get())) {
+ if (DomAgentDispatch::Dispatch(
+ dom_agent_impl_.get(), class_name, method_name, *message.get())) {
return;
}
}
@@ -264,8 +268,11 @@
tools_agent_delegate_stub_->UpdateFocusedNode(node_id);
}
-void WebDevToolsAgentImpl::SendRpcMessage(const std::string& raw_msg) {
- delegate_->SendMessageToClient(raw_msg);
+void WebDevToolsAgentImpl::SendRpcMessage(
+ const std::string& class_name,
+ const std::string& method_name,
+ const std::string& raw_msg) {
+ delegate_->SendMessageToClient(class_name, method_name, raw_msg);
}
// static
« no previous file with comments | « webkit/glue/webdevtoolsagent_impl.h ('k') | webkit/glue/webdevtoolsclient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698