Index: content/child/service_worker/service_worker_dispatcher.h |
diff --git a/content/child/service_worker/service_worker_dispatcher.h b/content/child/service_worker/service_worker_dispatcher.h |
index 3f136c28730f3f42b7056c24f46d830243b681cb..8cd2861f5e8150fec6fa55f546bee94638cbdbea 100644 |
--- a/content/child/service_worker/service_worker_dispatcher.h |
+++ b/content/child/service_worker/service_worker_dispatcher.h |
@@ -62,6 +62,11 @@ class ServiceWorkerDispatcher : public WorkerTaskRunner::Observer { |
int provider_id, |
const GURL& pattern, |
WebServiceWorkerRegistrationCallbacks* callbacks); |
+ // Corresponds to navigator.serviceWorker.getRegistration() |
+ void GetRegistration( |
+ int provider_id, |
+ const GURL& document_url, |
+ WebServiceWorkerRegistrationCallbacks* callbacks); |
// Called when a new provider context for a document is created. Usually |
// this happens when a new document is being loaded, and is called much |
@@ -133,6 +138,10 @@ class ServiceWorkerDispatcher : public WorkerTaskRunner::Observer { |
const ServiceWorkerVersionAttributes& attrs); |
void OnUnregistered(int thread_id, |
int request_id); |
+ void OnDidGetRegistration(int thread_id, |
+ int request_id, |
+ const ServiceWorkerRegistrationObjectInfo& info, |
+ const ServiceWorkerVersionAttributes& attrs); |
void OnRegistrationError(int thread_id, |
int request_id, |
blink::WebServiceWorkerError::ErrorType error_type, |