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

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

Issue 377153003: Service Worker: set active worker to REDUNDANT when unregistered (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make setting redundant clearly the responsibility of SWStorage 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_storage.h
diff --git a/content/browser/service_worker/service_worker_storage.h b/content/browser/service_worker/service_worker_storage.h
index b25f26b2692ab5602fc477d09e0082217132ce97..0f675898784f686fdedbb9ab2ede135f373b232f 100644
--- a/content/browser/service_worker/service_worker_storage.h
+++ b/content/browser/service_worker/service_worker_storage.h
@@ -254,8 +254,11 @@ class CONTENT_EXPORT ServiceWorkerStorage
// ServiceWorkerVersion::Listener override
virtual void OnNoControllees(ServiceWorkerVersion* version) OVERRIDE;
- void SchedulePurgeResources(int64 version_id,
- const std::vector<int64>& resources);
+ // Sets the version to redundant and purges its resources. If the version
+ // is controlling a page, defers until the version no longer controls a page.
+ void DecommissionVersion(int64 version_id,
falken 2014/07/09 08:47:13 suggestions on this naming are welcome. My other t
+ const std::vector<int64>& resources);
+
void StartPurgingResources(const std::vector<int64>& ids);
void StartPurgingResources(const ResourceList& resources);
void ContinuePurgingResources();

Powered by Google App Engine
This is Rietveld 408576698