Chromium Code Reviews| Index: content/browser/devtools/devtools_agent_host_impl.h |
| diff --git a/content/browser/devtools/devtools_agent_host_impl.h b/content/browser/devtools/devtools_agent_host_impl.h |
| index f48f42559aaa98699d40d82f36b7d04453e98d57..9f5165fba4dcf61cf03ee3669eac2092812eddac 100644 |
| --- a/content/browser/devtools/devtools_agent_host_impl.h |
| +++ b/content/browser/devtools/devtools_agent_host_impl.h |
| @@ -18,6 +18,7 @@ class Message; |
| namespace content { |
| class BrowserContext; |
| +class DevToolsProtocolHandler; |
| // Describes interface for managing devtools agents from the browser process. |
| class CONTENT_EXPORT DevToolsAgentHostImpl : public DevToolsAgentHost { |
| @@ -29,7 +30,7 @@ class CONTENT_EXPORT DevToolsAgentHostImpl : public DevToolsAgentHost { |
| virtual void Detach() = 0; |
| // Sends a message to the agent. |
| - void DispatchProtocolMessage(const std::string& message) override = 0; |
| + bool DispatchProtocolMessage(const std::string& message) override; |
| // Opens the inspector for this host. |
| void Inspect(BrowserContext* browser_context); |
| @@ -50,6 +51,8 @@ class CONTENT_EXPORT DevToolsAgentHostImpl : public DevToolsAgentHost { |
| DevToolsAgentHostImpl(); |
| ~DevToolsAgentHostImpl() override; |
| + scoped_ptr<DevToolsProtocolHandler> protocol_handler_; |
| + |
| void HostClosed(); |
| void SendMessageToClient(const std::string& message); |
| static void NotifyCallbacks(DevToolsAgentHostImpl* agent_host, bool attached); |
| @@ -57,6 +60,8 @@ class CONTENT_EXPORT DevToolsAgentHostImpl : public DevToolsAgentHost { |
| private: |
| friend class DevToolsAgentHost; // for static methods |
| + void DispatchOnInspectorFrontend(const std::string& message); |
|
pfeldman
2015/03/23 09:59:00
This is essentially the same as the SendMessageToC
Kunihiko Sakamoto
2015/03/23 10:23:58
Merged.
|
| + |
| const std::string id_; |
| DevToolsAgentHostClient* client_; |
| }; |