| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_ |
| 6 #define CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 int process_id); | 63 int process_id); |
| 64 ServiceWorkerStatusCode StopWorker(int process_id, | 64 ServiceWorkerStatusCode StopWorker(int process_id, |
| 65 int embedded_worker_id); | 65 int embedded_worker_id); |
| 66 | 66 |
| 67 // Stop all active workers, even if they're handling events. | 67 // Stop all active workers, even if they're handling events. |
| 68 void Shutdown(); | 68 void Shutdown(); |
| 69 | 69 |
| 70 // Called back from EmbeddedWorker in the child process, relayed via | 70 // Called back from EmbeddedWorker in the child process, relayed via |
| 71 // ServiceWorkerDispatcherHost. | 71 // ServiceWorkerDispatcherHost. |
| 72 void OnWorkerReadyForInspection(int process_id, int embedded_worker_id); | 72 void OnWorkerReadyForInspection(int process_id, int embedded_worker_id); |
| 73 void OnWorkerScriptLoaded(int process_id, | 73 void OnWorkerScriptLoaded(int process_id, int embedded_worker_id); |
| 74 int thread_id, | 74 void OnWorkerThreadStarted(int process_id, |
| 75 int embedded_worker_id); | 75 int thread_id, |
| 76 int embedded_worker_id); |
| 76 void OnWorkerScriptLoadFailed(int process_id, int embedded_worker_id); | 77 void OnWorkerScriptLoadFailed(int process_id, int embedded_worker_id); |
| 77 void OnWorkerScriptEvaluated(int process_id, | 78 void OnWorkerScriptEvaluated(int process_id, |
| 78 int embedded_worker_id, | 79 int embedded_worker_id, |
| 79 bool success); | 80 bool success); |
| 80 void OnWorkerStarted(int process_id, int embedded_worker_id); | 81 void OnWorkerStarted(int process_id, int embedded_worker_id); |
| 81 void OnWorkerStopped(int process_id, int embedded_worker_id); | 82 void OnWorkerStopped(int process_id, int embedded_worker_id); |
| 82 void OnReportException(int embedded_worker_id, | 83 void OnReportException(int embedded_worker_id, |
| 83 const base::string16& error_message, | 84 const base::string16& error_message, |
| 84 int line_number, | 85 int line_number, |
| 85 int column_number, | 86 int column_number, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 142 |
| 142 int next_embedded_worker_id_; | 143 int next_embedded_worker_id_; |
| 143 const int initial_embedded_worker_id_; | 144 const int initial_embedded_worker_id_; |
| 144 | 145 |
| 145 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerRegistry); | 146 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerRegistry); |
| 146 }; | 147 }; |
| 147 | 148 |
| 148 } // namespace content | 149 } // namespace content |
| 149 | 150 |
| 150 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_ | 151 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_ |
| OLD | NEW |