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..bf15c84c869473529b605a69addc690352e26d4e 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" |
@@ -45,6 +46,11 @@ class CONTENT_EXPORT ServiceWorkerStorage { |
void FindRegistrationForPattern(const GURL& pattern, |
const FindRegistrationCallback& callback); |
+ typedef base::Callback< |
+ void(scoped_ptr<std::vector<ServiceWorkerRegistration*> > registrations)> |
+ FindAllRegistrationsCallback; |
+ void FindAllRegistrations(const FindAllRegistrationsCallback& callback); |
+ |
// Stores |registration|. Returns SERVICE_WORKER_ERROR_EXISTS if |
// conflicting registration (which has different script_url) is |
// already registered for the |registration|->pattern(). |