| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_AGENT_HOST_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_AGENT_HOST_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_AGENT_HOST_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_AGENT_HOST_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "content/browser/devtools/devtools_agent_host_impl.h" | 9 #include "content/browser/devtools/devtools_agent_host_impl.h" |
| 10 #include "ipc/ipc_listener.h" | 10 #include "ipc/ipc_listener.h" |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 | 13 |
| 14 namespace devtools { namespace schema { class SchemaHandler; }} | 14 namespace devtools { namespace schema { class SchemaHandler; }} |
| 15 | 15 |
| 16 class BrowserContext; | 16 class BrowserContext; |
| 17 class DevToolsProtocolHandler; | 17 class DevToolsProtocolHandler; |
| 18 class SharedWorkerInstance; | |
| 19 | 18 |
| 20 class WorkerDevToolsAgentHost : public DevToolsAgentHostImpl, | 19 class WorkerDevToolsAgentHost : public DevToolsAgentHostImpl, |
| 21 public IPC::Listener { | 20 public IPC::Listener { |
| 22 public: | 21 public: |
| 23 typedef std::pair<int, int> WorkerId; | 22 typedef std::pair<int, int> WorkerId; |
| 24 | 23 |
| 25 // DevToolsAgentHost override. | 24 // DevToolsAgentHost override. |
| 26 BrowserContext* GetBrowserContext() override; | 25 BrowserContext* GetBrowserContext() override; |
| 27 bool DispatchProtocolMessage(const std::string& message) override; | 26 bool DispatchProtocolMessage(const std::string& message) override; |
| 28 | 27 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 std::unique_ptr<DevToolsProtocolHandler> protocol_handler_; | 70 std::unique_ptr<DevToolsProtocolHandler> protocol_handler_; |
| 72 DevToolsMessageChunkProcessor chunk_processor_; | 71 DevToolsMessageChunkProcessor chunk_processor_; |
| 73 WorkerState state_; | 72 WorkerState state_; |
| 74 WorkerId worker_id_; | 73 WorkerId worker_id_; |
| 75 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsAgentHost); | 74 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsAgentHost); |
| 76 }; | 75 }; |
| 77 | 76 |
| 78 } // namespace content | 77 } // namespace content |
| 79 | 78 |
| 80 #endif // CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_AGENT_HOST_H_ | 79 #endif // CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_AGENT_HOST_H_ |
| OLD | NEW |