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

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

Issue 1175823002: ServiceWorker: Implement ServiceWorkerRegistration.update() (2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: trivial fix 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.cc
diff --git a/content/child/service_worker/service_worker_dispatcher.cc b/content/child/service_worker/service_worker_dispatcher.cc
index e68f64451ba918e53105238a7f6daec12016fdd6..ef24f1703b30e5a7c8fd65ce54a7a3e5bf3af145 100644
--- a/content/child/service_worker/service_worker_dispatcher.cc
+++ b/content/child/service_worker/service_worker_dispatcher.cc
@@ -126,6 +126,13 @@ void ServiceWorkerDispatcher::RegisterServiceWorker(
CurrentWorkerId(), request_id, provider_id, pattern, script_url));
}
+void ServiceWorkerDispatcher::UpdateServiceWorker(
+ int provider_id,
+ int64 registration_id) {
+ thread_safe_sender_->Send(new ServiceWorkerHostMsg_UpdateServiceWorker(
+ provider_id, registration_id));
+}
+
void ServiceWorkerDispatcher::UnregisterServiceWorker(
int provider_id,
const GURL& pattern,

Powered by Google App Engine
This is Rietveld 408576698