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 8474c0a658f96114b9824d9eb461fb9807b04542..4c1af38a08be9287fd4a148117912376a5a7a19e 100644 |
| --- a/content/browser/devtools/devtools_agent_host_impl.h |
| +++ b/content/browser/devtools/devtools_agent_host_impl.h |
| @@ -49,9 +49,11 @@ class CONTENT_EXPORT DevToolsAgentHostImpl : public DevToolsAgentHost { |
| ~DevToolsAgentHostImpl() override; |
| void HostClosed(); |
| - void SendMessageToClient(const std::string& message); |
| + void SendMessageToClient(int session_id, const std::string& message); |
| devtools::DevToolsIOContext* GetIOContext() { return &io_context_; } |
| + int SessionId() { return session_id_; } |
|
dgozman
2015/11/06 22:57:27
int session_id() { return session_id_; }
kozy
2015/11/07 01:54:43
Done.
|
| + |
| static void NotifyCallbacks(DevToolsAgentHostImpl* agent_host, bool attached); |
| private: |
| @@ -59,13 +61,14 @@ class CONTENT_EXPORT DevToolsAgentHostImpl : public DevToolsAgentHost { |
| void InnerDetach(); |
| const std::string id_; |
| + int session_id_; |
| DevToolsAgentHostClient* client_; |
| devtools::DevToolsIOContext io_context_; |
| }; |
| class DevToolsMessageChunkProcessor { |
| public: |
| - using SendMessageCallback = base::Callback<void(const std::string&)>; |
| + using SendMessageCallback = base::Callback<void(int, const std::string&)>; |
| explicit DevToolsMessageChunkProcessor(const SendMessageCallback& callback); |
| ~DevToolsMessageChunkProcessor(); |