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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 void AddMojoBinding(mojo::ScopedInterfaceEndpointHandle handle); | 101 void AddMojoBinding(mojo::ScopedInterfaceEndpointHandle handle); |
102 | 102 |
103 // mojom::ServiceWorkerDispatcherHost implementation | 103 // mojom::ServiceWorkerDispatcherHost implementation |
104 void OnProviderCreated(ServiceWorkerProviderHostInfo info) override; | 104 void OnProviderCreated(ServiceWorkerProviderHostInfo info) override; |
105 void OnProviderDestroyed(int provider_id) override; | 105 void OnProviderDestroyed(int provider_id) override; |
106 void OnSetHostedVersionId(int provider_id, | 106 void OnSetHostedVersionId(int provider_id, |
107 int64_t version_id, | 107 int64_t version_id, |
108 int embedded_worker_id) override; | 108 int embedded_worker_id) override; |
109 | 109 |
110 // IPC Message handlers | 110 // IPC Message handlers |
111 void OnRegisterServiceWorker(int thread_id, | 111 void OnRegisterServiceWorker( |
112 int request_id, | 112 int thread_id, |
113 int provider_id, | 113 int request_id, |
114 const GURL& pattern, | 114 int provider_id, |
115 const GURL& script_url); | 115 const ServiceWorkerRegistrationAttributes& attrs); |
116 void OnUpdateServiceWorker(int thread_id, | 116 void OnUpdateServiceWorker(int thread_id, |
117 int request_id, | 117 int request_id, |
118 int provider_id, | 118 int provider_id, |
119 int64_t registration_id); | 119 int64_t registration_id); |
120 void OnUnregisterServiceWorker(int thread_id, | 120 void OnUnregisterServiceWorker(int thread_id, |
121 int request_id, | 121 int request_id, |
122 int provider_id, | 122 int provider_id, |
123 int64_t registration_id); | 123 int64_t registration_id); |
124 void OnGetRegistration(int thread_id, | 124 void OnGetRegistration(int thread_id, |
125 int request_id, | 125 int request_id, |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 mojo::AssociatedBindingSet<mojom::ServiceWorkerDispatcherHost> bindings_; | 287 mojo::AssociatedBindingSet<mojom::ServiceWorkerDispatcherHost> bindings_; |
288 | 288 |
289 base::WeakPtrFactory<ServiceWorkerDispatcherHost> weak_factory_; | 289 base::WeakPtrFactory<ServiceWorkerDispatcherHost> weak_factory_; |
290 | 290 |
291 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); | 291 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); |
292 }; | 292 }; |
293 | 293 |
294 } // namespace content | 294 } // namespace content |
295 | 295 |
296 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 296 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |
OLD | NEW |