Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: content/browser/devtools/shared_worker_devtools_agent_host.h

Issue 988003002: DevTools: pick sw targets to attach to on the backend side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_SHARED_WORKER_DEVTOOLS_AGENT_HOST_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_SHARED_WORKER_DEVTOOLS_AGENT_HOST_H_
6 #define CONTENT_BROWSER_DEVTOOLS_SHARED_WORKER_DEVTOOLS_AGENT_HOST_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_SHARED_WORKER_DEVTOOLS_AGENT_HOST_H_
7 7
8 #include "content/browser/devtools/worker_devtools_agent_host.h" 8 #include "content/browser/devtools/worker_devtools_agent_host.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 class SharedWorkerInstance; 12 class SharedWorkerInstance;
13 13
14 class SharedWorkerDevToolsAgentHost : public WorkerDevToolsAgentHost { 14 class SharedWorkerDevToolsAgentHost : public WorkerDevToolsAgentHost {
15 public: 15 public:
16 using List = std::vector<scoped_refptr<SharedWorkerDevToolsAgentHost>>;
17
16 SharedWorkerDevToolsAgentHost(WorkerId worker_id, 18 SharedWorkerDevToolsAgentHost(WorkerId worker_id,
17 const SharedWorkerInstance& shared_worker); 19 const SharedWorkerInstance& shared_worker);
18 20
19 // DevToolsAgentHost override. 21 // DevToolsAgentHost override.
20 Type GetType() override; 22 Type GetType() override;
21 std::string GetTitle() override; 23 std::string GetTitle() override;
22 GURL GetURL() override; 24 GURL GetURL() override;
23 bool Activate() override; 25 bool Activate() override;
24 bool Close() override; 26 bool Close() override;
25 27
26 bool Matches(const SharedWorkerInstance& other); 28 bool Matches(const SharedWorkerInstance& other);
27 29
28 private: 30 private:
29 friend class SharedWorkerDevToolsManagerTest; 31 friend class SharedWorkerDevToolsManagerTest;
30 32
31 ~SharedWorkerDevToolsAgentHost() override; 33 ~SharedWorkerDevToolsAgentHost() override;
32 scoped_ptr<SharedWorkerInstance> shared_worker_; 34 scoped_ptr<SharedWorkerInstance> shared_worker_;
33 35
34 DISALLOW_COPY_AND_ASSIGN(SharedWorkerDevToolsAgentHost); 36 DISALLOW_COPY_AND_ASSIGN(SharedWorkerDevToolsAgentHost);
35 }; 37 };
36 38
37 } // namespace content 39 } // namespace content
38 40
39 #endif // CONTENT_BROWSER_DEVTOOLS_SHARED_WORKER_DEVTOOLS_AGENT_HOST_H_ 41 #endif // CONTENT_BROWSER_DEVTOOLS_SHARED_WORKER_DEVTOOLS_AGENT_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/service_worker_devtools_manager.cc ('k') | content/browser/devtools/shared_worker_devtools_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698