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

Unified Diff: chrome/renderer/devtools_client.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 | « chrome/renderer/devtools_client.h ('k') | webkit/glue/devtools/devtools_mock_rpc.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/devtools_client.cc
===================================================================
--- chrome/renderer/devtools_client.cc (revision 17071)
+++ chrome/renderer/devtools_client.cc (working copy)
@@ -37,8 +37,10 @@
return handled;
}
-void DevToolsClient::SendMessageToAgent(const std::string& raw_msg) {
- Send(DevToolsAgentMsg_RpcMessage(raw_msg));
+void DevToolsClient::SendMessageToAgent(const std::string& class_name,
+ const std::string& method_name,
+ const std::string& raw_msg) {
+ Send(DevToolsAgentMsg_RpcMessage(class_name, method_name, raw_msg));
}
void DevToolsClient::SendDebuggerCommandToAgent(const std::string& command) {
@@ -49,6 +51,8 @@
render_view_->TakeFocus(render_view_->webview(), false);
}
-void DevToolsClient::OnRpcMessage(const std::string& raw_msg) {
- web_tools_client_->DispatchMessageFromAgent(raw_msg);
+void DevToolsClient::OnRpcMessage(const std::string& class_name,
+ const std::string& method_name,
+ const std::string& raw_msg) {
+ web_tools_client_->DispatchMessageFromAgent(class_name, method_name, raw_msg);
}
« no previous file with comments | « chrome/renderer/devtools_client.h ('k') | webkit/glue/devtools/devtools_mock_rpc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698