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

Unified Diff: content/child/service_worker/service_worker_dispatcher.h

Issue 1175823002: ServiceWorker: Implement ServiceWorkerRegistration.update() (2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/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 01b88cc638a301a9d57cf5190ced17ee87bc6cd2..4f33a600b4237e570dd1c9e68672f7c5e34482a5 100644
--- a/content/child/service_worker/service_worker_dispatcher.h
+++ b/content/child/service_worker/service_worker_dispatcher.h
@@ -65,23 +65,25 @@ class CONTENT_EXPORT ServiceWorkerDispatcher
void OnMessageReceived(const IPC::Message& msg);
bool Send(IPC::Message* msg);
- // Corresponds to navigator.serviceWorker.register()
+ // Corresponds to navigator.serviceWorker.register().
void RegisterServiceWorker(
int provider_id,
const GURL& pattern,
const GURL& script_url,
WebServiceWorkerRegistrationCallbacks* callbacks);
- // Corresponds to navigator.serviceWorker.unregister()
+ // Corresponds to ServiceWorkerRegistration.update().
+ void UpdateServiceWorker(int provider_id, int64 registration_id);
+ // Corresponds to ServiceWorkerRegistration.unregister().
void UnregisterServiceWorker(
int provider_id,
const GURL& pattern,
WebServiceWorkerUnregistrationCallbacks* callbacks);
- // Corresponds to navigator.serviceWorker.getRegistration()
+ // Corresponds to navigator.serviceWorker.getRegistration().
void GetRegistration(
int provider_id,
const GURL& document_url,
WebServiceWorkerRegistrationCallbacks* callbacks);
- // Corresponds to navigator.serviceWorker.getRegistrations()
+ // Corresponds to navigator.serviceWorker.getRegistrations().
void GetRegistrations(
int provider_id,
WebServiceWorkerGetRegistrationsCallbacks* callbacks);

Powered by Google App Engine
This is Rietveld 408576698