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