Chromium Code Reviews| Index: content/browser/service_worker/service_worker_storage.h |
| diff --git a/content/browser/service_worker/service_worker_storage.h b/content/browser/service_worker/service_worker_storage.h |
| index 1bfa737d83679f42b96dda6b49c652117d56a3c3..15ff055fb552a5af3f8c87a7703ae8efab1198b2 100644 |
| --- a/content/browser/service_worker/service_worker_storage.h |
| +++ b/content/browser/service_worker/service_worker_storage.h |
| @@ -53,9 +53,10 @@ class CONTENT_EXPORT ServiceWorkerStorage |
| typedef base::Callback<void(ServiceWorkerStatusCode status, |
| const scoped_refptr<ServiceWorkerRegistration>& |
| registration)> FindRegistrationCallback; |
| - typedef base::Callback< |
| - void(const std::vector<ServiceWorkerRegistrationInfo>& registrations)> |
| - GetRegistrationsInfosCallback; |
| + typedef base::Callback<void(const std::vector<ServiceWorkerRegistration*>& |
|
michaeln
2015/06/05 21:50:42
std::vector<scoped_refptr<<ServiceWorkerRegistrati
jungkees
2015/06/06 13:55:12
Addressed.
|
| + registrations)> GetRegistrationsCallback; |
| + typedef base::Callback<void(const std::vector<ServiceWorkerRegistrationInfo>& |
| + registrations)> GetRegistrationsInfosCallback; |
| typedef base::Callback< |
| void(ServiceWorkerStatusCode status, bool are_equal)> |
| CompareCallback; |
| @@ -109,13 +110,12 @@ class CONTENT_EXPORT ServiceWorkerStorage |
| ServiceWorkerRegistration* GetUninstallingRegistration(const GURL& scope); |
| - // Returns info about all stored and initially installing registrations for |
| - // a given origin. |
| - void GetRegistrationsForOrigin( |
| - const GURL& origin, const GetRegistrationsInfosCallback& callback); |
| + // Returns all stored registrations for a given origin. |
| + void GetRegistrationsForOrigin(const GURL& origin, |
| + const GetRegistrationsCallback& callback); |
| // Returns info about all stored and initially installing registrations. |
| - void GetAllRegistrations(const GetRegistrationsInfosCallback& callback); |
| + void GetAllRegistrationsInfos(const GetRegistrationsInfosCallback& callback); |
| // Commits |registration| with the installed but not activated |version| |
| // to storage, overwritting any pre-existing registration data for the scope. |
| @@ -319,11 +319,15 @@ class CONTENT_EXPORT ServiceWorkerStorage |
| const ServiceWorkerDatabase::RegistrationData& data, |
| const ResourceList& resources, |
| ServiceWorkerDatabase::Status status); |
| - void DidGetRegistrations( |
| - const GetRegistrationsInfosCallback& callback, |
| - RegistrationList* registrations, |
| - const GURL& origin_filter, |
| - ServiceWorkerDatabase::Status status); |
| + void DidGetRegistrations(const GetRegistrationsCallback& callback, |
| + RegistrationList* registrations, |
| + std::vector<ResourceList>* resource_lists, |
| + const GURL& origin_filter, |
| + ServiceWorkerDatabase::Status status); |
| + void DidGetRegistrationsInfos(const GetRegistrationsInfosCallback& callback, |
| + RegistrationList* registrations, |
| + const GURL& origin_filter, |
| + ServiceWorkerDatabase::Status status); |
| void DidStoreRegistration( |
| const StatusCallback& callback, |
| const ServiceWorkerDatabase::RegistrationData& new_version, |