summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webdevtoolsclient_impl.h
diff options
context:
space:
mode:
authoryurys@google.com <yurys@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-29 08:37:06 +0000
committeryurys@google.com <yurys@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-29 08:37:06 +0000
commit37f39f0516108d8ecc308b5c5f3c06f0753b0038 (patch)
tree99702d3f3536a0ff9c933a996aa31ecec27a4201 /webkit/glue/webdevtoolsclient_impl.h
parente13372e4cf728c46c9a08ad300b633f9b975108c (diff)
downloadchromium_src-37f39f0516108d8ecc308b5c5f3c06f0753b0038.zip
chromium_src-37f39f0516108d8ecc308b5c5f3c06f0753b0038.tar.gz
chromium_src-37f39f0516108d8ecc308b5c5f3c06f0753b0038.tar.bz2
DevTools: decouple class and method names from RPC message arguments. That would allow to select dispatcher wothout parsing the message argument.
Review URL: http://codereview.chromium.org/115862 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17176 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webdevtoolsclient_impl.h')
-rw-r--r--webkit/glue/webdevtoolsclient_impl.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/webkit/glue/webdevtoolsclient_impl.h b/webkit/glue/webdevtoolsclient_impl.h
index a7ae71f5..07df265 100644
--- a/webkit/glue/webdevtoolsclient_impl.h
+++ b/webkit/glue/webdevtoolsclient_impl.h
@@ -38,12 +38,17 @@ class WebDevToolsClientImpl : public WebDevToolsClient,
virtual ~WebDevToolsClientImpl();
// DevToolsRpc::Delegate implementation.
- virtual void SendRpcMessage(const std::string& raw_msg);
+ virtual void SendRpcMessage(const std::string& class_name,
+ const std::string& method_name,
+ const std::string& raw_msg);
// WebDevToolsClient implementation.
- virtual void DispatchMessageFromAgent(const std::string& raw_msg);
+ virtual void DispatchMessageFromAgent(const std::string& class_name,
+ const std::string& method_name,
+ const std::string& raw_msg);
private:
+ void ExecuteScript(const std::string& expr);
static v8::Handle<v8::Value> JsAddSourceToFrame(const v8::Arguments& args);
static v8::Handle<v8::Value> JsLoaded(const v8::Arguments& args);
static v8::Handle<v8::Value> JsActivateWindow(const v8::Arguments& args);