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

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

Issue 1146913004: Service Worker: Add ServiceWorkerContainer.getRegistrations() method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update tools/metrics/histograms/histograms.xml. Created 5 years, 6 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_dispatcher_host.h
diff --git a/content/browser/service_worker/service_worker_dispatcher_host.h b/content/browser/service_worker/service_worker_dispatcher_host.h
index d121e6bafa5c9f067fd7e2a6b7d705a8fb1650a4..6cca82ae134d34f4a101ccf409d9000aab491f35 100644
--- a/content/browser/service_worker/service_worker_dispatcher_host.h
+++ b/content/browser/service_worker/service_worker_dispatcher_host.h
@@ -29,6 +29,7 @@ class ServiceWorkerRegistration;
class ServiceWorkerRegistrationHandle;
class ServiceWorkerVersion;
struct ServiceWorkerObjectInfo;
+struct ServiceWorkerRegistrationInfo;
struct ServiceWorkerRegistrationObjectInfo;
struct ServiceWorkerVersionAttributes;
struct TransferredMessagePort;
@@ -95,6 +96,7 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost : public BrowserMessageFilter {
int request_id,
int provider_id,
const GURL& document_url);
+ void OnGetRegistrations(int thread_id, int request_id, int provider_id);
void OnGetRegistrationForReady(int thread_id,
int request_id,
int provider_id);
@@ -160,6 +162,13 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost : public BrowserMessageFilter {
ServiceWorkerStatusCode status,
const scoped_refptr<ServiceWorkerRegistration>& registration);
+ void GetRegistrationsComplete(
+ int thread_id,
+ int provider_id,
+ int request_id,
+ const std::vector<scoped_refptr<ServiceWorkerRegistration>>&
+ registrations);
+
void GetRegistrationForReadyComplete(
int thread_id,
int request_id,
@@ -179,6 +188,10 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost : public BrowserMessageFilter {
int request_id,
ServiceWorkerStatusCode status);
+ void SendGetRegistrationsError(int thread_id,
+ int request_id,
+ ServiceWorkerStatusCode status);
+
ServiceWorkerContextCore* GetContext();
int render_process_id_;

Powered by Google App Engine
This is Rietveld 408576698