| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // mojom::ServiceWorkerDispatcherHost implementation | 105 // mojom::ServiceWorkerDispatcherHost implementation |
| 106 void OnProviderCreated(ServiceWorkerProviderHostInfo info) override; | 106 void OnProviderCreated(ServiceWorkerProviderHostInfo info) override; |
| 107 void OnSetHostedVersionId(int provider_id, | 107 void OnSetHostedVersionId(int provider_id, |
| 108 int64_t version_id, | 108 int64_t version_id, |
| 109 int embedded_worker_id) override; | 109 int embedded_worker_id) override; |
| 110 | 110 |
| 111 // IPC Message handlers | 111 // IPC Message handlers |
| 112 void OnRegisterServiceWorker(int thread_id, | 112 void OnRegisterServiceWorker(int thread_id, |
| 113 int request_id, | 113 int request_id, |
| 114 int provider_id, | 114 int provider_id, |
| 115 const GURL& pattern, | 115 const GURL& script_url, |
| 116 const GURL& script_url); | 116 const ServiceWorkerRegistrationOptions& options); |
| 117 void OnUpdateServiceWorker(int thread_id, | 117 void OnUpdateServiceWorker(int thread_id, |
| 118 int request_id, | 118 int request_id, |
| 119 int provider_id, | 119 int provider_id, |
| 120 int64_t registration_id); | 120 int64_t registration_id); |
| 121 void OnUnregisterServiceWorker(int thread_id, | 121 void OnUnregisterServiceWorker(int thread_id, |
| 122 int request_id, | 122 int request_id, |
| 123 int provider_id, | 123 int provider_id, |
| 124 int64_t registration_id); | 124 int64_t registration_id); |
| 125 void OnGetRegistration(int thread_id, | 125 void OnGetRegistration(int thread_id, |
| 126 int request_id, | 126 int request_id, |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 mojo::AssociatedBindingSet<mojom::ServiceWorkerDispatcherHost> bindings_; | 271 mojo::AssociatedBindingSet<mojom::ServiceWorkerDispatcherHost> bindings_; |
| 272 | 272 |
| 273 base::WeakPtrFactory<ServiceWorkerDispatcherHost> weak_factory_; | 273 base::WeakPtrFactory<ServiceWorkerDispatcherHost> weak_factory_; |
| 274 | 274 |
| 275 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); | 275 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); |
| 276 }; | 276 }; |
| 277 | 277 |
| 278 } // namespace content | 278 } // namespace content |
| 279 | 279 |
| 280 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 280 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |
| OLD | NEW |