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

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

Issue 1108253002: (Reland) Evict Service Worker when reading it from disk cache fails. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 5 years, 8 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_registration.h
diff --git a/content/browser/service_worker/service_worker_registration.h b/content/browser/service_worker/service_worker_registration.h
index 3a7740b2283ab9cfecdd0ba8890f1b9bba8801fe..98569e081b29490b162bb7373a97c90f61d0a9a2 100644
--- a/content/browser/service_worker/service_worker_registration.h
+++ b/content/browser/service_worker/service_worker_registration.h
@@ -137,6 +137,10 @@ class CONTENT_EXPORT ServiceWorkerRegistration
void ClearUserData(const std::string& key,
const StatusCallback& callback);
+ // Unsets the version and deletes its resources. Also deletes this
+ // registration from storage if there is no longer a stored version.
+ void DeleteVersion(const scoped_refptr<ServiceWorkerVersion>& version);
+
private:
friend class base::RefCounted<ServiceWorkerRegistration>;

Powered by Google App Engine
This is Rietveld 408576698