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..07112c31c0bf25bddbdbe3739c3a66f1ce8c33bc 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); |