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

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

Issue 535753002: ServiceWorker: Implement navigator.serviceWorker.getRegistration [2/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 9ea4296b1e63773ea4597a693377f4b221b1a6a1..f7529960f6cf833eb922d966dce7ac1df85a5fad 100644
--- a/content/browser/service_worker/service_worker_dispatcher_host.h
+++ b/content/browser/service_worker/service_worker_dispatcher_host.h
@@ -73,6 +73,10 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost : public BrowserMessageFilter {
int request_id,
int provider_id,
const GURL& pattern);
+ void OnGetRegistration(int thread_id,
+ int request_id,
+ int provider_id,
+ const GURL& document_url);
void OnProviderCreated(int provider_id);
void OnProviderDestroyed(int provider_id);
void OnSetHostedVersionId(int provider_id, int64 version_id);
@@ -118,6 +122,12 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost : public BrowserMessageFilter {
int request_id,
ServiceWorkerStatusCode status);
+ void GetRegistrationComplete(int thread_id,
+ int provider_id,
+ int request_id,
+ ServiceWorkerStatusCode status,
+ int64 registration_id);
+
void SendRegistrationError(int thread_id,
int request_id,
ServiceWorkerStatusCode status);

Powered by Google App Engine
This is Rietveld 408576698