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

Unified Diff: content/public/browser/service_worker_context.h

Issue 1432823003: Add a test to cover service worker update codepath when extension is updated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments + git cl format Created 5 years, 1 month 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/public/browser/service_worker_context.h
diff --git a/content/public/browser/service_worker_context.h b/content/public/browser/service_worker_context.h
index bac9ab620847a693819b127887f6107fcea28f66..8a48a921c11b870e34127efa162fdef25b7cf61c 100644
--- a/content/public/browser/service_worker_context.h
+++ b/content/public/browser/service_worker_context.h
@@ -70,6 +70,10 @@ class ServiceWorkerContext {
virtual void DeleteForOrigin(const GURL& origin_url,
const ResultCallback& callback) = 0;
+ // Forces updating of ServiceWorker before next page load.
+ // Used to clear stale ServiceWorker when an extension is updated.
+ virtual void SetForceUpdateOnPageLoadForOrigin(const GURL& origin) = 0;
+
// Returns true if a Service Worker registration exists that matches |url|,
// and if |other_url| falls inside the scope of the same registration. Note
// this still returns true even if there is a Service Worker registration

Powered by Google App Engine
This is Rietveld 408576698