| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 51 |
| 52 std::vector<scoped_refptr<DevToolsAgentHost> > GetOrCreateAllAgentHosts(); |
| 53 |
| 52 // Returns true when the worker must be paused on start because a DevTool | 54 // Returns true when the worker must be paused on start because a DevTool |
| 53 // window for the same former SharedWorkerInstance is still opened. | 55 // window for the same former SharedWorkerInstance is still opened. |
| 54 bool SharedWorkerCreated(int worker_process_id, | 56 bool SharedWorkerCreated(int worker_process_id, |
| 55 int worker_route_id, | 57 int worker_route_id, |
| 56 const SharedWorkerInstance& instance); | 58 const SharedWorkerInstance& instance); |
| 57 // Returns true when the worker must be paused on start because a DevTool | 59 // Returns true when the worker must be paused on start because a DevTool |
| 58 // window for the same former ServiceWorkerIdentifier is still opened or | 60 // window for the same former ServiceWorkerIdentifier is still opened or |
| 59 // debug-on-start is enabled in chrome://serviceworker-internals. | 61 // debug-on-start is enabled in chrome://serviceworker-internals. |
| 60 bool ServiceWorkerCreated(int worker_process_id, | 62 bool ServiceWorkerCreated(int worker_process_id, |
| 61 int worker_route_id, | 63 int worker_route_id, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 AgentHostMap workers_; | 99 AgentHostMap workers_; |
| 98 | 100 |
| 99 bool debug_service_worker_on_start_; | 101 bool debug_service_worker_on_start_; |
| 100 | 102 |
| 101 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDevToolsManager); | 103 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDevToolsManager); |
| 102 }; | 104 }; |
| 103 | 105 |
| 104 } // namespace content | 106 } // namespace content |
| 105 | 107 |
| 106 #endif // CONTENT_BROWSER_DEVTOOLS_EMBEDDED_WORKER_DEVTOOLS_MANAGER_H_ | 108 #endif // CONTENT_BROWSER_DEVTOOLS_EMBEDDED_WORKER_DEVTOOLS_MANAGER_H_ |
| OLD | NEW |