| 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 3d27cd7260e40d2c5cd4c6cdbb5554908a87c6cf..8474c0a658f96114b9824d9eb461fb9807b04542 100644
|
| --- a/content/browser/devtools/devtools_agent_host_impl.h
|
| +++ b/content/browser/devtools/devtools_agent_host_impl.h
|
| @@ -9,7 +9,6 @@
|
|
|
| #include "base/compiler_specific.h"
|
| #include "content/browser/devtools/devtools_io_context.h"
|
| -#include "content/browser/devtools/protocol/devtools_protocol_delegate.h"
|
| #include "content/common/content_export.h"
|
| #include "content/common/devtools_messages.h"
|
| #include "content/public/browser/devtools_agent_host.h"
|
| @@ -23,8 +22,7 @@
|
| class BrowserContext;
|
|
|
| // Describes interface for managing devtools agents from the browser process.
|
| -class CONTENT_EXPORT DevToolsAgentHostImpl : public DevToolsAgentHost,
|
| - public DevToolsProtocolDelegate {
|
| +class CONTENT_EXPORT DevToolsAgentHostImpl : public DevToolsAgentHost {
|
| public:
|
| // Informs the hosted agent that a client host has attached.
|
| virtual void Attach() = 0;
|
| @@ -46,20 +44,13 @@
|
| void DisconnectWebContents() override;
|
| void ConnectWebContents(WebContents* wc) override;
|
|
|
| - // DevToolsProtocolDelegate implementation.
|
| - void SendProtocolResponse(int session_id,
|
| - const std::string& message) override;
|
| - void SendProtocolNotification(const std::string& message) override;
|
| -
|
| protected:
|
| DevToolsAgentHostImpl();
|
| ~DevToolsAgentHostImpl() override;
|
|
|
| void HostClosed();
|
| - void SendMessageToClient(int session_id, const std::string& message);
|
| + void SendMessageToClient(const std::string& message);
|
| devtools::DevToolsIOContext* GetIOContext() { return &io_context_; }
|
| -
|
| - int session_id() { return session_id_; }
|
|
|
| static void NotifyCallbacks(DevToolsAgentHostImpl* agent_host, bool attached);
|
|
|
| @@ -68,14 +59,13 @@
|
| void InnerDetach();
|
|
|
| const std::string id_;
|
| - int session_id_;
|
| DevToolsAgentHostClient* client_;
|
| devtools::DevToolsIOContext io_context_;
|
| };
|
|
|
| class DevToolsMessageChunkProcessor {
|
| public:
|
| - using SendMessageCallback = base::Callback<void(int, const std::string&)>;
|
| + using SendMessageCallback = base::Callback<void(const std::string&)>;
|
| explicit DevToolsMessageChunkProcessor(const SendMessageCallback& callback);
|
| ~DevToolsMessageChunkProcessor();
|
|
|
|
|