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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 int provider_id, | 127 int provider_id, |
128 int64_t registration_id); | 128 int64_t registration_id); |
129 void OnGetRegistration(int thread_id, | 129 void OnGetRegistration(int thread_id, |
130 int request_id, | 130 int request_id, |
131 int provider_id, | 131 int provider_id, |
132 const GURL& document_url); | 132 const GURL& document_url); |
133 void OnGetRegistrations(int thread_id, int request_id, int provider_id); | 133 void OnGetRegistrations(int thread_id, int request_id, int provider_id); |
134 void OnGetRegistrationForReady(int thread_id, | 134 void OnGetRegistrationForReady(int thread_id, |
135 int request_id, | 135 int request_id, |
136 int provider_id); | 136 int provider_id); |
| 137 void OnEnableNavigationPreload(int thread_id, |
| 138 int request_id, |
| 139 int provider_id, |
| 140 int64_t registration_id, |
| 141 bool enable); |
137 void OnProviderDestroyed(int provider_id); | 142 void OnProviderDestroyed(int provider_id); |
138 void OnSetHostedVersionId(int provider_id, | 143 void OnSetHostedVersionId(int provider_id, |
139 int64_t version_id, | 144 int64_t version_id, |
140 int embedded_worker_id); | 145 int embedded_worker_id); |
141 void OnWorkerReadyForInspection(int embedded_worker_id); | 146 void OnWorkerReadyForInspection(int embedded_worker_id); |
142 void OnWorkerScriptLoaded(int embedded_worker_id); | 147 void OnWorkerScriptLoaded(int embedded_worker_id); |
143 void OnWorkerThreadStarted(int embedded_worker_id, | 148 void OnWorkerThreadStarted(int embedded_worker_id, |
144 int thread_id, | 149 int thread_id, |
145 int provider_id); | 150 int provider_id); |
146 void OnWorkerScriptLoadFailed(int embedded_worker_id); | 151 void OnWorkerScriptLoadFailed(int embedded_worker_id); |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 mojo::AssociatedBindingSet<mojom::ServiceWorkerDispatcherHost> bindings_; | 274 mojo::AssociatedBindingSet<mojom::ServiceWorkerDispatcherHost> bindings_; |
270 | 275 |
271 base::WeakPtrFactory<ServiceWorkerDispatcherHost> weak_factory_; | 276 base::WeakPtrFactory<ServiceWorkerDispatcherHost> weak_factory_; |
272 | 277 |
273 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); | 278 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); |
274 }; | 279 }; |
275 | 280 |
276 } // namespace content | 281 } // namespace content |
277 | 282 |
278 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 283 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |
OLD | NEW |