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
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_DEVTOOLS_SHARED_WORKER_DEVTOOLS_AGENT_HOST_H_
6 #define CONTENT_BROWSER_DEVTOOLS_SHARED_WORKER_DEVTOOLS_AGENT_HOST_H_
8 #include "content/browser/devtools/worker_devtools_agent_host.h"
12 class SharedWorkerInstance
;
14 class SharedWorkerDevToolsAgentHost
: public WorkerDevToolsAgentHost
{
16 using List
= std::vector
<scoped_refptr
<SharedWorkerDevToolsAgentHost
>>;
18 SharedWorkerDevToolsAgentHost(WorkerId worker_id
,
19 const SharedWorkerInstance
& shared_worker
);
21 // DevToolsAgentHost override.
22 Type
GetType() override
;
23 std::string
GetTitle() override
;
24 GURL
GetURL() override
;
25 bool Activate() override
;
26 bool Close() override
;
28 bool Matches(const SharedWorkerInstance
& other
);
31 friend class SharedWorkerDevToolsManagerTest
;
33 ~SharedWorkerDevToolsAgentHost() override
;
34 scoped_ptr
<SharedWorkerInstance
> shared_worker_
;
36 DISALLOW_COPY_AND_ASSIGN(SharedWorkerDevToolsAgentHost
);
39 } // namespace content
41 #endif // CONTENT_BROWSER_DEVTOOLS_SHARED_WORKER_DEVTOOLS_AGENT_HOST_H_