Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(758)

Unified Diff: content/browser/service_worker/service_worker_storage.h

Issue 182383008: Create chrome://serviceworker-internals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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().

Powered by Google App Engine
This is Rietveld 408576698