| 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_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ | 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ |
| 6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ | 6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // Corresponds to ServiceWorkerRegistration.update(). | 85 // Corresponds to ServiceWorkerRegistration.update(). |
| 86 void UpdateServiceWorker(int provider_id, | 86 void UpdateServiceWorker(int provider_id, |
| 87 int64 registration_id, | 87 int64 registration_id, |
| 88 WebServiceWorkerUpdateCallbacks* callbacks); | 88 WebServiceWorkerUpdateCallbacks* callbacks); |
| 89 // Corresponds to ServiceWorkerRegistration.unregister(). | 89 // Corresponds to ServiceWorkerRegistration.unregister(). |
| 90 void UnregisterServiceWorker( | 90 void UnregisterServiceWorker( |
| 91 int provider_id, | 91 int provider_id, |
| 92 int64 registration_id, | 92 int64 registration_id, |
| 93 WebServiceWorkerUnregistrationCallbacks* callbacks); | 93 WebServiceWorkerUnregistrationCallbacks* callbacks); |
| 94 // Corresponds to navigator.serviceWorker.getRegistration(). | 94 // Corresponds to navigator.serviceWorker.getRegistration(). |
| 95 void GetRegistration( | 95 void GetRegistration(int provider_id, |
| 96 int provider_id, | 96 const GURL& document_url, |
| 97 const GURL& document_url, | 97 WebServiceWorkerGetRegistrationCallbacks* callbacks); |
| 98 WebServiceWorkerRegistrationCallbacks* callbacks); | |
| 99 // Corresponds to navigator.serviceWorker.getRegistrations(). | 98 // Corresponds to navigator.serviceWorker.getRegistrations(). |
| 100 void GetRegistrations( | 99 void GetRegistrations( |
| 101 int provider_id, | 100 int provider_id, |
| 102 WebServiceWorkerGetRegistrationsCallbacks* callbacks); | 101 WebServiceWorkerGetRegistrationsCallbacks* callbacks); |
| 103 | 102 |
| 104 void GetRegistrationForReady( | 103 void GetRegistrationForReady( |
| 105 int provider_id, | 104 int provider_id, |
| 106 WebServiceWorkerGetRegistrationForReadyCallbacks* callbacks); | 105 WebServiceWorkerGetRegistrationForReadyCallbacks* callbacks); |
| 107 | 106 |
| 108 // Called when a new provider context for a document is created. Usually | 107 // Called when a new provider context for a document is created. Usually |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 | 289 |
| 291 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 290 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 292 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; | 291 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; |
| 293 | 292 |
| 294 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); | 293 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); |
| 295 }; | 294 }; |
| 296 | 295 |
| 297 } // namespace content | 296 } // namespace content |
| 298 | 297 |
| 299 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ | 298 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ |
| OLD | NEW |