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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 bool SharedWorkerCreated(int worker_process_id, | 67 bool SharedWorkerCreated(int worker_process_id, |
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 WorkerContextStarted(int worker_process_id, int worker_route_id); | |
78 void WorkerDestroyed(int worker_process_id, int worker_route_id); | 77 void WorkerDestroyed(int worker_process_id, int worker_route_id); |
79 | 78 |
80 void set_debug_service_worker_on_start(bool debug_on_start) { | 79 void set_debug_service_worker_on_start(bool debug_on_start) { |
81 debug_service_worker_on_start_ = debug_on_start; | 80 debug_service_worker_on_start_ = debug_on_start; |
82 } | 81 } |
83 bool debug_service_worker_on_start() const { | 82 bool debug_service_worker_on_start() const { |
84 return debug_service_worker_on_start_; | 83 return debug_service_worker_on_start_; |
85 } | 84 } |
86 | 85 |
87 private: | 86 private: |
(...skipping 23 matching lines...) Expand all Loading... |
111 AgentHostMap workers_; | 110 AgentHostMap workers_; |
112 | 111 |
113 bool debug_service_worker_on_start_; | 112 bool debug_service_worker_on_start_; |
114 | 113 |
115 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDevToolsManager); | 114 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDevToolsManager); |
116 }; | 115 }; |
117 | 116 |
118 } // namespace content | 117 } // namespace content |
119 | 118 |
120 #endif // CONTENT_BROWSER_DEVTOOLS_EMBEDDED_WORKER_DEVTOOLS_MANAGER_H_ | 119 #endif // CONTENT_BROWSER_DEVTOOLS_EMBEDDED_WORKER_DEVTOOLS_MANAGER_H_ |
OLD | NEW |