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_CONTEXT_WRAPPER_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 ServiceWorkerStatusCode status, | 191 ServiceWorkerStatusCode status, |
192 const scoped_refptr<ServiceWorkerRegistration>& registration); | 192 const scoped_refptr<ServiceWorkerRegistration>& registration); |
193 void OnStatusChangedForFindReadyRegistration( | 193 void OnStatusChangedForFindReadyRegistration( |
194 const FindRegistrationCallback& callback, | 194 const FindRegistrationCallback& callback, |
195 const scoped_refptr<ServiceWorkerRegistration>& registration); | 195 const scoped_refptr<ServiceWorkerRegistration>& registration); |
196 | 196 |
197 void DidDeleteAndStartOver(ServiceWorkerStatusCode status); | 197 void DidDeleteAndStartOver(ServiceWorkerStatusCode status); |
198 | 198 |
199 void DidGetAllRegistrationsForGetAllOrigins( | 199 void DidGetAllRegistrationsForGetAllOrigins( |
200 const GetUsageInfoCallback& callback, | 200 const GetUsageInfoCallback& callback, |
| 201 ServiceWorkerStatusCode status, |
201 const std::vector<ServiceWorkerRegistrationInfo>& registrations); | 202 const std::vector<ServiceWorkerRegistrationInfo>& registrations); |
202 | 203 |
203 void DidCheckHasServiceWorker(const CheckHasServiceWorkerCallback& callback, | 204 void DidCheckHasServiceWorker(const CheckHasServiceWorkerCallback& callback, |
204 bool has_service_worker); | 205 bool has_service_worker); |
205 | 206 |
206 void DidFindRegistrationForUpdate( | 207 void DidFindRegistrationForUpdate( |
207 ServiceWorkerStatusCode status, | 208 ServiceWorkerStatusCode status, |
208 const scoped_refptr<content::ServiceWorkerRegistration>& registration); | 209 const scoped_refptr<content::ServiceWorkerRegistration>& registration); |
209 | 210 |
210 // The core context is only for use on the IO thread. | 211 // The core context is only for use on the IO thread. |
(...skipping 15 matching lines...) Expand all Loading... |
226 | 227 |
227 // The ResourceContext associated with this context. | 228 // The ResourceContext associated with this context. |
228 ResourceContext* resource_context_; | 229 ResourceContext* resource_context_; |
229 | 230 |
230 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); | 231 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); |
231 }; | 232 }; |
232 | 233 |
233 } // namespace content | 234 } // namespace content |
234 | 235 |
235 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ | 236 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
OLD | NEW |