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
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_DEVTOOLS_BROWSER_DEVTOOLS_AGENT_HOST_H_
6 #define CONTENT_BROWSER_DEVTOOLS_BROWSER_DEVTOOLS_AGENT_HOST_H_
8 #include "content/browser/devtools/devtools_agent_host_impl.h"
13 namespace system_info
{ class SystemInfoHandler
; }
14 namespace tethering
{ class TetheringHandler
; }
15 namespace tracing
{ class TracingHandler
; }
16 } // namespace devtools
18 class BrowserDevToolsAgentHost
: public DevToolsAgentHostImpl
{
20 friend class DevToolsAgentHost
;
21 BrowserDevToolsAgentHost(
22 scoped_refptr
<base::MessageLoopProxy
> tethering_message_loop
,
23 const CreateServerSocketCallback
& socket_callback
);
24 ~BrowserDevToolsAgentHost() override
;
26 // DevToolsAgentHostImpl implementation.
27 void Attach() override
;
28 void Detach() override
;
30 // DevToolsAgentHost implementation.
31 Type
GetType() override
;
32 std::string
GetTitle() override
;
33 GURL
GetURL() override
;
34 bool Activate() override
;
35 bool Close() override
;
37 scoped_ptr
<devtools::system_info::SystemInfoHandler
> system_info_handler_
;
38 scoped_ptr
<devtools::tethering::TetheringHandler
> tethering_handler_
;
39 scoped_ptr
<devtools::tracing::TracingHandler
> tracing_handler_
;
42 } // namespace content
44 #endif // CONTENT_BROWSER_DEVTOOLS_BROWSER_DEVTOOLS_AGENT_HOST_H_