OLD | NEW |
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_EMBEDDED_WORKER_DEVTOOLS_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_EMBEDDED_WORKER_DEVTOOLS_MANAGER_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_EMBEDDED_WORKER_DEVTOOLS_MANAGER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_EMBEDDED_WORKER_DEVTOOLS_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 private: | 41 private: |
42 const ServiceWorkerContextCore* const service_worker_context_; | 42 const ServiceWorkerContextCore* const service_worker_context_; |
43 const int64 service_worker_version_id_; | 43 const int64 service_worker_version_id_; |
44 }; | 44 }; |
45 | 45 |
46 // Returns the EmbeddedWorkerDevToolsManager singleton. | 46 // Returns the EmbeddedWorkerDevToolsManager singleton. |
47 static EmbeddedWorkerDevToolsManager* GetInstance(); | 47 static EmbeddedWorkerDevToolsManager* GetInstance(); |
48 | 48 |
49 DevToolsAgentHost* GetDevToolsAgentHostForWorker(int worker_process_id, | 49 DevToolsAgentHost* GetDevToolsAgentHostForWorker(int worker_process_id, |
50 int worker_route_id); | 50 int worker_route_id); |
51 DevToolsAgentHost* GetDevToolsAgentHostForServiceWorker( | |
52 const ServiceWorkerIdentifier& service_worker_id); | |
53 | 51 |
54 // Returns true when the worker must be paused on start because a DevTool | 52 // Returns true when the worker must be paused on start because a DevTool |
55 // window for the same former SharedWorkerInstance is still opened. | 53 // window for the same former SharedWorkerInstance is still opened. |
56 bool SharedWorkerCreated(int worker_process_id, | 54 bool SharedWorkerCreated(int worker_process_id, |
57 int worker_route_id, | 55 int worker_route_id, |
58 const SharedWorkerInstance& instance); | 56 const SharedWorkerInstance& instance); |
59 // Returns true when the worker must be paused on start because a DevTool | 57 // Returns true when the worker must be paused on start because a DevTool |
60 // window for the same former ServiceWorkerIdentifier is still opened or | 58 // window for the same former ServiceWorkerIdentifier is still opened or |
61 // debug-on-start is enabled in chrome://serviceworker-internals. | 59 // debug-on-start is enabled in chrome://serviceworker-internals. |
62 bool ServiceWorkerCreated(int worker_process_id, | 60 bool ServiceWorkerCreated(int worker_process_id, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 AgentHostMap workers_; | 97 AgentHostMap workers_; |
100 | 98 |
101 bool debug_service_worker_on_start_; | 99 bool debug_service_worker_on_start_; |
102 | 100 |
103 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDevToolsManager); | 101 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDevToolsManager); |
104 }; | 102 }; |
105 | 103 |
106 } // namespace content | 104 } // namespace content |
107 | 105 |
108 #endif // CONTENT_BROWSER_DEVTOOLS_EMBEDDED_WORKER_DEVTOOLS_MANAGER_H_ | 106 #endif // CONTENT_BROWSER_DEVTOOLS_EMBEDDED_WORKER_DEVTOOLS_MANAGER_H_ |
OLD | NEW |