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

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

Issue 1003263002: DevTools: support scopes and iframes when debugging service workers. (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_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_
6 #define CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_
7 7
8 #include <map>
9
8 #include "content/browser/devtools/service_worker_devtools_manager.h" 10 #include "content/browser/devtools/service_worker_devtools_manager.h"
9 #include "content/browser/devtools/worker_devtools_agent_host.h" 11 #include "content/browser/devtools/worker_devtools_agent_host.h"
10 12
11 namespace content { 13 namespace content {
12 14
13 class ServiceWorkerDevToolsAgentHost : public WorkerDevToolsAgentHost { 15 class ServiceWorkerDevToolsAgentHost : public WorkerDevToolsAgentHost {
14 public: 16 public:
15 using List = std::vector<scoped_refptr<ServiceWorkerDevToolsAgentHost>>; 17 using List = std::vector<scoped_refptr<ServiceWorkerDevToolsAgentHost>>;
18 using Map = std::map<std::string,
19 scoped_refptr<ServiceWorkerDevToolsAgentHost>>;
16 using ServiceWorkerIdentifier = 20 using ServiceWorkerIdentifier =
17 ServiceWorkerDevToolsManager::ServiceWorkerIdentifier; 21 ServiceWorkerDevToolsManager::ServiceWorkerIdentifier;
18 22
19 ServiceWorkerDevToolsAgentHost(WorkerId worker_id, 23 ServiceWorkerDevToolsAgentHost(WorkerId worker_id,
20 const ServiceWorkerIdentifier& service_worker); 24 const ServiceWorkerIdentifier& service_worker);
21 25
22 void UnregisterWorker(); 26 void UnregisterWorker();
23 27
24 // DevToolsAgentHost override. 28 // DevToolsAgentHost override.
25 Type GetType() override; 29 Type GetType() override;
(...skipping 11 matching lines...) Expand all
37 private: 41 private:
38 ~ServiceWorkerDevToolsAgentHost() override; 42 ~ServiceWorkerDevToolsAgentHost() override;
39 scoped_ptr<ServiceWorkerIdentifier> service_worker_; 43 scoped_ptr<ServiceWorkerIdentifier> service_worker_;
40 44
41 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDevToolsAgentHost); 45 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDevToolsAgentHost);
42 }; 46 };
43 47
44 } // namespace content 48 } // namespace content
45 49
46 #endif // CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_ 50 #endif // CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698