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_VERSION_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 int line_number, | 265 int line_number, |
266 const GURL& source_url) override; | 266 const GURL& source_url) override; |
267 bool OnMessageReceived(const IPC::Message& message) override; | 267 bool OnMessageReceived(const IPC::Message& message) override; |
268 | 268 |
269 void OnStartMessageSent(ServiceWorkerStatusCode status); | 269 void OnStartMessageSent(ServiceWorkerStatusCode status); |
270 | 270 |
271 void DispatchInstallEventAfterStartWorker(int active_version_id, | 271 void DispatchInstallEventAfterStartWorker(int active_version_id, |
272 const StatusCallback& callback); | 272 const StatusCallback& callback); |
273 void DispatchActivateEventAfterStartWorker(const StatusCallback& callback); | 273 void DispatchActivateEventAfterStartWorker(const StatusCallback& callback); |
274 | 274 |
| 275 void DispatchMessageEventInternal( |
| 276 const base::string16& message, |
| 277 const std::vector<int>& sent_message_port_ids, |
| 278 const StatusCallback& callback); |
| 279 |
275 // Message handlers. | 280 // Message handlers. |
276 void OnGetClientDocuments(int request_id); | 281 void OnGetClientDocuments(int request_id); |
277 void OnActivateEventFinished(int request_id, | 282 void OnActivateEventFinished(int request_id, |
278 blink::WebServiceWorkerEventResult result); | 283 blink::WebServiceWorkerEventResult result); |
279 void OnInstallEventFinished(int request_id, | 284 void OnInstallEventFinished(int request_id, |
280 blink::WebServiceWorkerEventResult result); | 285 blink::WebServiceWorkerEventResult result); |
281 void OnFetchEventFinished(int request_id, | 286 void OnFetchEventFinished(int request_id, |
282 ServiceWorkerFetchEventResult result, | 287 ServiceWorkerFetchEventResult result, |
283 const ServiceWorkerResponse& response); | 288 const ServiceWorkerResponse& response); |
284 void OnSyncEventFinished(int request_id); | 289 void OnSyncEventFinished(int request_id); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 bool is_doomed_; | 325 bool is_doomed_; |
321 | 326 |
322 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; | 327 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; |
323 | 328 |
324 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); | 329 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); |
325 }; | 330 }; |
326 | 331 |
327 } // namespace content | 332 } // namespace content |
328 | 333 |
329 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 334 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
OLD | NEW |