| 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 181f724205f9e872f0a8d9617105d65b2bb4d06e..5c315daf2cc65b80351b434cd8dccdec8b598cbb 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().
|
|
|