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

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: Update to ToT Created 6 years, 9 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 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().

Powered by Google App Engine
This is Rietveld 408576698