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

Unified Diff: content/browser/service_worker/service_worker_job_coordinator.cc

Issue 380093002: Update installed ServiceWorkers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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_job_coordinator.cc
diff --git a/content/browser/service_worker/service_worker_job_coordinator.cc b/content/browser/service_worker/service_worker_job_coordinator.cc
index 8152b4902721df56d780c8e3ff968701968dbd3d..13e4b4b703ca28e5a47cdaddac99a1a5bb869b78 100644
--- a/content/browser/service_worker/service_worker_job_coordinator.cc
+++ b/content/browser/service_worker/service_worker_job_coordinator.cc
@@ -92,6 +92,13 @@ void ServiceWorkerJobCoordinator::Unregister(
queued_job->AddCallback(callback);
}
+void ServiceWorkerJobCoordinator::Update(
+ ServiceWorkerRegistration* registration) {
+ job_queues_[registration->pattern()].Push(
+ make_scoped_ptr<ServiceWorkerRegisterJobBase>(
+ new ServiceWorkerRegisterJob(context_, registration)));
+}
+
void ServiceWorkerJobCoordinator::AbortAll() {
for (RegistrationJobMap::iterator it = job_queues_.begin();
it != job_queues_.end(); ++it) {

Powered by Google App Engine
This is Rietveld 408576698