| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_BROWSER_DEVTOOLS_AGENT_HOST_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_BROWSER_DEVTOOLS_AGENT_HOST_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_BROWSER_DEVTOOLS_AGENT_HOST_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_BROWSER_DEVTOOLS_AGENT_HOST_H_ |
| 7 | 7 |
| 8 #include "content/browser/devtools/devtools_agent_host_impl.h" | 8 #include "content/browser/devtools/devtools_agent_host_impl.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 | 11 |
| 12 class DevToolsProtocolHandler; | 12 class DevToolsProtocolHandler; |
| 13 | 13 |
| 14 namespace devtools { | 14 namespace devtools { |
| 15 namespace io { class IOHandler; } | 15 namespace io { |
| 16 namespace memory { class MemoryHandler; } | 16 class IOHandler; |
| 17 namespace system_info { class SystemInfoHandler; } | 17 } |
| 18 namespace tethering { class TetheringHandler; } | 18 namespace memory { |
| 19 namespace tracing { class TracingHandler; } | 19 class MemoryHandler; |
| 20 } |
| 21 namespace system_info { |
| 22 class SystemInfoHandler; |
| 23 } |
| 24 namespace target { |
| 25 class TargetHandler; |
| 26 } |
| 27 namespace tethering { |
| 28 class TetheringHandler; |
| 29 } |
| 30 namespace tracing { |
| 31 class TracingHandler; |
| 32 } |
| 20 } // namespace devtools | 33 } // namespace devtools |
| 21 | 34 |
| 22 class BrowserDevToolsAgentHost : public DevToolsAgentHostImpl { | 35 class BrowserDevToolsAgentHost : public DevToolsAgentHostImpl { |
| 23 private: | 36 private: |
| 24 friend class DevToolsAgentHost; | 37 friend class DevToolsAgentHost; |
| 25 BrowserDevToolsAgentHost( | 38 BrowserDevToolsAgentHost( |
| 26 scoped_refptr<base::SingleThreadTaskRunner> tethering_task_runner, | 39 scoped_refptr<base::SingleThreadTaskRunner> tethering_task_runner, |
| 27 const CreateServerSocketCallback& socket_callback); | 40 const CreateServerSocketCallback& socket_callback); |
| 28 ~BrowserDevToolsAgentHost() override; | 41 ~BrowserDevToolsAgentHost() override; |
| 29 | 42 |
| 30 // DevToolsAgentHostImpl implementation. | 43 // DevToolsAgentHostImpl implementation. |
| 31 void Attach() override; | 44 void Attach() override; |
| 32 void Detach() override; | 45 void Detach() override; |
| 33 | 46 |
| 34 // DevToolsAgentHost implementation. | 47 // DevToolsAgentHost implementation. |
| 35 std::string GetType() override; | 48 std::string GetType() override; |
| 36 std::string GetTitle() override; | 49 std::string GetTitle() override; |
| 37 GURL GetURL() override; | 50 GURL GetURL() override; |
| 38 bool Activate() override; | 51 bool Activate() override; |
| 39 void Reload() override; | 52 void Reload() override; |
| 40 bool Close() override; | 53 bool Close() override; |
| 41 bool DispatchProtocolMessage(const std::string& message) override; | 54 bool DispatchProtocolMessage(const std::string& message) override; |
| 42 | 55 |
| 43 std::unique_ptr<devtools::io::IOHandler> io_handler_; | 56 std::unique_ptr<devtools::io::IOHandler> io_handler_; |
| 44 std::unique_ptr<devtools::memory::MemoryHandler> memory_handler_; | 57 std::unique_ptr<devtools::memory::MemoryHandler> memory_handler_; |
| 45 std::unique_ptr<devtools::system_info::SystemInfoHandler> | 58 std::unique_ptr<devtools::system_info::SystemInfoHandler> |
| 46 system_info_handler_; | 59 system_info_handler_; |
| 60 std::unique_ptr<devtools::target::TargetHandler> target_handler_; |
| 47 std::unique_ptr<devtools::tethering::TetheringHandler> tethering_handler_; | 61 std::unique_ptr<devtools::tethering::TetheringHandler> tethering_handler_; |
| 48 std::unique_ptr<devtools::tracing::TracingHandler> tracing_handler_; | 62 std::unique_ptr<devtools::tracing::TracingHandler> tracing_handler_; |
| 49 std::unique_ptr<DevToolsProtocolHandler> protocol_handler_; | 63 std::unique_ptr<DevToolsProtocolHandler> protocol_handler_; |
| 50 }; | 64 }; |
| 51 | 65 |
| 52 } // namespace content | 66 } // namespace content |
| 53 | 67 |
| 54 #endif // CONTENT_BROWSER_DEVTOOLS_BROWSER_DEVTOOLS_AGENT_HOST_H_ | 68 #endif // CONTENT_BROWSER_DEVTOOLS_BROWSER_DEVTOOLS_AGENT_HOST_H_ |
| OLD | NEW |