Index: chrome/renderer/devtools_agent_filter.h |
diff --git a/chrome/renderer/devtools_agent_filter.h b/chrome/renderer/devtools_agent_filter.h |
index 4bf4460c259b435dcb7a3537e0f9f36eb22f75f3..ac5fd0ca550c034e0ef2bd77eeef801735019816 100644 |
--- a/chrome/renderer/devtools_agent_filter.h |
+++ b/chrome/renderer/devtools_agent_filter.h |
@@ -22,18 +22,36 @@ class DevToolsAgentFilter : public IPC::ChannelProxy::MessageFilter { |
DevToolsAgentFilter(); |
virtual ~DevToolsAgentFilter(); |
+ static void SendRpcMessage(const std::string& class_name, |
+ const std::string& method_name, |
+ const std::string& param1, |
+ const std::string& param2, |
+ const std::string& param3); |
+ |
private: |
// IPC::ChannelProxy::MessageFilter override. Called on IO thread. |
virtual bool OnMessageReceived(const IPC::Message& message); |
+ virtual void OnFilterAdded(IPC::Channel* channel) { channel_ = channel; } |
+ |
static void DispatchMessageLoop(); |
// OnDebuggerCommand will be executed in the IO thread so that we can |
// handle debug messages even when v8 is stopped. |
void OnDebuggerCommand(const std::string& command); |
void OnDebuggerPauseScript(); |
- |
- int current_routing_id_; |
+ void OnRpcMessage(const std::string& class_name, |
+ const std::string& method_name, |
+ const std::string& param1, |
+ const std::string& param2, |
+ const std::string& param3); |
+ |
+ bool message_handled_; |
+ |
+ // Made static to allow DevToolsAgent to use it for replying directly |
+ // from IO thread. |
+ static int current_routing_id_; |
+ static IPC::Channel* channel_; |
DISALLOW_COPY_AND_ASSIGN(DevToolsAgentFilter); |
}; |