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_SERVICE_WORKER_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/id_map.h" | 10 #include "base/id_map.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 void OnGetRegistration(int thread_id, | 86 void OnGetRegistration(int thread_id, |
87 int request_id, | 87 int request_id, |
88 int provider_id, | 88 int provider_id, |
89 const GURL& document_url); | 89 const GURL& document_url); |
90 void OnProviderCreated(int provider_id); | 90 void OnProviderCreated(int provider_id); |
91 void OnProviderDestroyed(int provider_id); | 91 void OnProviderDestroyed(int provider_id); |
92 void OnSetHostedVersionId(int provider_id, int64 version_id); | 92 void OnSetHostedVersionId(int provider_id, int64 version_id); |
93 void OnWorkerReadyForInspection(int embedded_worker_id); | 93 void OnWorkerReadyForInspection(int embedded_worker_id); |
94 void OnWorkerScriptLoaded(int embedded_worker_id, int thread_id); | 94 void OnWorkerScriptLoaded(int embedded_worker_id, int thread_id); |
95 void OnWorkerScriptLoadFailed(int embedded_worker_id); | 95 void OnWorkerScriptLoadFailed(int embedded_worker_id); |
| 96 void OnWorkerScriptEvaluated(int embedded_worker_id, bool success); |
96 void OnWorkerStarted(int embedded_worker_id); | 97 void OnWorkerStarted(int embedded_worker_id); |
97 void OnWorkerStopped(int embedded_worker_id); | 98 void OnWorkerStopped(int embedded_worker_id); |
98 void OnPausedAfterDownload(int embedded_worker_id); | 99 void OnPausedAfterDownload(int embedded_worker_id); |
99 void OnReportException(int embedded_worker_id, | 100 void OnReportException(int embedded_worker_id, |
100 const base::string16& error_message, | 101 const base::string16& error_message, |
101 int line_number, | 102 int line_number, |
102 int column_number, | 103 int column_number, |
103 const GURL& source_url); | 104 const GURL& source_url); |
104 void OnReportConsoleMessage( | 105 void OnReportConsoleMessage( |
105 int embedded_worker_id, | 106 int embedded_worker_id, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 169 |
169 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. | 170 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. |
170 ScopedVector<IPC::Message> pending_messages_; | 171 ScopedVector<IPC::Message> pending_messages_; |
171 | 172 |
172 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); | 173 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); |
173 }; | 174 }; |
174 | 175 |
175 } // namespace content | 176 } // namespace content |
176 | 177 |
177 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 178 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |
OLD | NEW |