| 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 cbc3bc2cfca5f627d3adc73e83f85ae45346d57a..f72c0a98582edd6c640a94097c19237612ab5625 100644
|
| --- a/content/browser/devtools/devtools_agent_host_impl.h
|
| +++ b/content/browser/devtools/devtools_agent_host_impl.h
|
| @@ -12,6 +12,7 @@
|
| #include "base/compiler_specific.h"
|
| #include "content/browser/devtools/devtools_io_context.h"
|
| #include "content/browser/devtools/protocol/devtools_protocol_delegate.h"
|
| +#include "content/browser/devtools/protocol/forward.h"
|
| #include "content/common/content_export.h"
|
| #include "content/common/devtools_messages.h"
|
| #include "content/public/browser/devtools_agent_host.h"
|
| @@ -26,7 +27,8 @@ class BrowserContext;
|
|
|
| // Describes interface for managing devtools agents from the browser process.
|
| class CONTENT_EXPORT DevToolsAgentHostImpl : public DevToolsAgentHost,
|
| - public DevToolsProtocolDelegate {
|
| + public DevToolsProtocolDelegate,
|
| + public protocol::FrontendChannel {
|
| public:
|
| // Informs the hosted agent that a client host has attached.
|
| virtual void Attach() = 0;
|
| @@ -59,6 +61,9 @@ class CONTENT_EXPORT DevToolsAgentHostImpl : public DevToolsAgentHost,
|
| void SendProtocolResponse(int session_id,
|
| const std::string& message) override;
|
| void SendProtocolNotification(const std::string& message) override;
|
| + void sendProtocolResponse(int callId, const std::string& message) override;
|
| + void sendProtocolNotification(const std::string& message) override;
|
| + void flushProtocolNotifications() override;
|
|
|
| protected:
|
| DevToolsAgentHostImpl(const std::string& id);
|
| @@ -72,7 +77,7 @@ class CONTENT_EXPORT DevToolsAgentHostImpl : public DevToolsAgentHost,
|
| void NotifyCreated();
|
| void HostClosed();
|
| void SendMessageToClient(int session_id, const std::string& message);
|
| - devtools::DevToolsIOContext* GetIOContext() { return &io_context_; }
|
| + DevToolsIOContext* GetIOContext() { return &io_context_; }
|
|
|
| int session_id() { DCHECK(client_); return session_id_; }
|
|
|
| @@ -87,7 +92,7 @@ class CONTENT_EXPORT DevToolsAgentHostImpl : public DevToolsAgentHost,
|
| const std::string id_;
|
| int session_id_;
|
| DevToolsAgentHostClient* client_;
|
| - devtools::DevToolsIOContext io_context_;
|
| + DevToolsIOContext io_context_;
|
| static int s_attached_count_;
|
| static int s_force_creation_count_;
|
| };
|
|
|