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 { class IOHandler; } |
| 16 namespace memory { class MemoryHandler; } |
16 namespace system_info { class SystemInfoHandler; } | 17 namespace system_info { class SystemInfoHandler; } |
17 namespace tethering { class TetheringHandler; } | 18 namespace tethering { class TetheringHandler; } |
18 namespace tracing { class TracingHandler; } | 19 namespace tracing { class TracingHandler; } |
19 } // namespace devtools | 20 } // namespace devtools |
20 | 21 |
21 class BrowserDevToolsAgentHost : public DevToolsAgentHostImpl { | 22 class BrowserDevToolsAgentHost : public DevToolsAgentHostImpl { |
22 private: | 23 private: |
23 friend class DevToolsAgentHost; | 24 friend class DevToolsAgentHost; |
24 BrowserDevToolsAgentHost( | 25 BrowserDevToolsAgentHost( |
25 scoped_refptr<base::SingleThreadTaskRunner> tethering_task_runner, | 26 scoped_refptr<base::SingleThreadTaskRunner> tethering_task_runner, |
26 const CreateServerSocketCallback& socket_callback); | 27 const CreateServerSocketCallback& socket_callback); |
27 ~BrowserDevToolsAgentHost() override; | 28 ~BrowserDevToolsAgentHost() override; |
28 | 29 |
29 // DevToolsAgentHostImpl implementation. | 30 // DevToolsAgentHostImpl implementation. |
30 void Attach() override; | 31 void Attach() override; |
31 void Detach() override; | 32 void Detach() override; |
32 | 33 |
33 // DevToolsAgentHost implementation. | 34 // DevToolsAgentHost implementation. |
34 Type GetType() override; | 35 Type GetType() override; |
35 std::string GetTitle() override; | 36 std::string GetTitle() override; |
36 GURL GetURL() override; | 37 GURL GetURL() override; |
37 bool Activate() override; | 38 bool Activate() override; |
38 bool Close() override; | 39 bool Close() override; |
39 bool DispatchProtocolMessage(const std::string& message) override; | 40 bool DispatchProtocolMessage(const std::string& message) override; |
40 | 41 |
41 scoped_ptr<devtools::io::IOHandler> io_handler_; | 42 scoped_ptr<devtools::io::IOHandler> io_handler_; |
| 43 scoped_ptr<devtools::memory::MemoryHandler> memory_handler_; |
42 scoped_ptr<devtools::system_info::SystemInfoHandler> system_info_handler_; | 44 scoped_ptr<devtools::system_info::SystemInfoHandler> system_info_handler_; |
43 scoped_ptr<devtools::tethering::TetheringHandler> tethering_handler_; | 45 scoped_ptr<devtools::tethering::TetheringHandler> tethering_handler_; |
44 scoped_ptr<devtools::tracing::TracingHandler> tracing_handler_; | 46 scoped_ptr<devtools::tracing::TracingHandler> tracing_handler_; |
45 scoped_ptr<DevToolsProtocolHandler> protocol_handler_; | 47 scoped_ptr<DevToolsProtocolHandler> protocol_handler_; |
46 }; | 48 }; |
47 | 49 |
48 } // namespace content | 50 } // namespace content |
49 | 51 |
50 #endif // CONTENT_BROWSER_DEVTOOLS_BROWSER_DEVTOOLS_AGENT_HOST_H_ | 52 #endif // CONTENT_BROWSER_DEVTOOLS_BROWSER_DEVTOOLS_AGENT_HOST_H_ |
OLD | NEW |