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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 int process_id); | 61 int process_id); |
62 ServiceWorkerStatusCode StopWorker(int process_id, | 62 ServiceWorkerStatusCode StopWorker(int process_id, |
63 int embedded_worker_id); | 63 int embedded_worker_id); |
64 | 64 |
65 // Stop all active workers, even if they're handling events. | 65 // Stop all active workers, even if they're handling events. |
66 void Shutdown(); | 66 void Shutdown(); |
67 | 67 |
68 // Called back from EmbeddedWorker in the child process, relayed via | 68 // Called back from EmbeddedWorker in the child process, relayed via |
69 // ServiceWorkerDispatcherHost. | 69 // ServiceWorkerDispatcherHost. |
70 void OnWorkerReadyForInspection(int process_id, int embedded_worker_id); | 70 void OnWorkerReadyForInspection(int process_id, int embedded_worker_id); |
71 void OnWorkerScriptLoaded(int process_id, int embedded_worker_id); | 71 void OnWorkerScriptLoaded(int process_id, |
| 72 int thread_id, |
| 73 int embedded_worker_id); |
72 void OnWorkerScriptLoadFailed(int process_id, int embedded_worker_id); | 74 void OnWorkerScriptLoadFailed(int process_id, int embedded_worker_id); |
73 void OnWorkerStarted(int process_id, int thread_id, int embedded_worker_id); | 75 void OnWorkerStarted(int process_id, int embedded_worker_id); |
74 void OnWorkerStopped(int process_id, int embedded_worker_id); | 76 void OnWorkerStopped(int process_id, int embedded_worker_id); |
75 void OnPausedAfterDownload(int process_id, int embedded_worker_id); | 77 void OnPausedAfterDownload(int process_id, int embedded_worker_id); |
76 void OnReportException(int embedded_worker_id, | 78 void OnReportException(int embedded_worker_id, |
77 const base::string16& error_message, | 79 const base::string16& error_message, |
78 int line_number, | 80 int line_number, |
79 int column_number, | 81 int column_number, |
80 const GURL& source_url); | 82 const GURL& source_url); |
81 void OnReportConsoleMessage(int embedded_worker_id, | 83 void OnReportConsoleMessage(int embedded_worker_id, |
82 int source_identifier, | 84 int source_identifier, |
83 int message_level, | 85 int message_level, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 126 |
125 int next_embedded_worker_id_; | 127 int next_embedded_worker_id_; |
126 const int initial_embedded_worker_id_; | 128 const int initial_embedded_worker_id_; |
127 | 129 |
128 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerRegistry); | 130 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerRegistry); |
129 }; | 131 }; |
130 | 132 |
131 } // namespace content | 133 } // namespace content |
132 | 134 |
133 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_ | 135 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_ |
OLD | NEW |