| 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 6dda5a950905b4aa8cbef1629e345da72264acfd..eb25cf82165270f894e2b8479fba5556c78841b0 100644
|
| --- a/content/browser/service_worker/service_worker_storage.h
|
| +++ b/content/browser/service_worker/service_worker_storage.h
|
| @@ -6,6 +6,7 @@
|
| #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_
|
|
|
| #include <map>
|
| +#include <vector>
|
|
|
| #include "base/bind.h"
|
| #include "base/files/file_path.h"
|
| @@ -22,6 +23,7 @@ class QuotaManagerProxy;
|
| namespace content {
|
|
|
| class ServiceWorkerRegistration;
|
| +class ServiceWorkerRegistrationInfo;
|
|
|
| // This class provides an interface to load registration data and
|
| // instantiate ServiceWorkerRegistration objects.
|
| @@ -45,6 +47,11 @@ class CONTENT_EXPORT ServiceWorkerStorage {
|
| void FindRegistrationForPattern(const GURL& pattern,
|
| const FindRegistrationCallback& callback);
|
|
|
| + typedef base::Callback<
|
| + void(const std::vector<ServiceWorkerRegistrationInfo>& registrations)>
|
| + GetAllRegistrationInfosCallback;
|
| + void GetAllRegistrations(const GetAllRegistrationInfosCallback& callback);
|
| +
|
| // Stores |registration|. Returns SERVICE_WORKER_ERROR_EXISTS if
|
| // conflicting registration (which has different script_url) is
|
| // already registered for the |registration|->pattern().
|
|
|