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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 int worker_route_id, | 68 int worker_route_id, |
69 const SharedWorkerInstance& instance); | 69 const SharedWorkerInstance& instance); |
70 // Returns true when the worker must be paused on start because a DevTool | 70 // Returns true when the worker must be paused on start because a DevTool |
71 // window for the same former ServiceWorkerIdentifier is still opened or | 71 // window for the same former ServiceWorkerIdentifier is still opened or |
72 // debug-on-start is enabled in chrome://serviceworker-internals. | 72 // debug-on-start is enabled in chrome://serviceworker-internals. |
73 bool ServiceWorkerCreated(int worker_process_id, | 73 bool ServiceWorkerCreated(int worker_process_id, |
74 int worker_route_id, | 74 int worker_route_id, |
75 const ServiceWorkerIdentifier& service_worker_id); | 75 const ServiceWorkerIdentifier& service_worker_id); |
76 void WorkerReadyForInspection(int worker_process_id, int worker_route_id); | 76 void WorkerReadyForInspection(int worker_process_id, int worker_route_id); |
77 void WorkerDestroyed(int worker_process_id, int worker_route_id); | 77 void WorkerDestroyed(int worker_process_id, int worker_route_id); |
| 78 void WorkerStopIgnored(int worker_process_id, int worker_route_id); |
78 | 79 |
79 void set_debug_service_worker_on_start(bool debug_on_start) { | 80 void set_debug_service_worker_on_start(bool debug_on_start) { |
80 debug_service_worker_on_start_ = debug_on_start; | 81 debug_service_worker_on_start_ = debug_on_start; |
81 } | 82 } |
82 bool debug_service_worker_on_start() const { | 83 bool debug_service_worker_on_start() const { |
83 return debug_service_worker_on_start_; | 84 return debug_service_worker_on_start_; |
84 } | 85 } |
85 | 86 |
86 private: | 87 private: |
87 friend struct DefaultSingletonTraits<EmbeddedWorkerDevToolsManager>; | 88 friend struct DefaultSingletonTraits<EmbeddedWorkerDevToolsManager>; |
(...skipping 22 matching lines...) Expand all Loading... |
110 AgentHostMap workers_; | 111 AgentHostMap workers_; |
111 | 112 |
112 bool debug_service_worker_on_start_; | 113 bool debug_service_worker_on_start_; |
113 | 114 |
114 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDevToolsManager); | 115 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDevToolsManager); |
115 }; | 116 }; |
116 | 117 |
117 } // namespace content | 118 } // namespace content |
118 | 119 |
119 #endif // CONTENT_BROWSER_DEVTOOLS_EMBEDDED_WORKER_DEVTOOLS_MANAGER_H_ | 120 #endif // CONTENT_BROWSER_DEVTOOLS_EMBEDDED_WORKER_DEVTOOLS_MANAGER_H_ |
OLD | NEW |