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

Unified Diff: content/browser/service_worker/service_worker_context_wrapper.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: use set_force_update_on_page_load() + 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/browser/service_worker/service_worker_context_wrapper.h
diff --git a/content/browser/service_worker/service_worker_context_wrapper.h b/content/browser/service_worker/service_worker_context_wrapper.h
index 37a8d2483fd5aa6abfd12af18616e78421d7db6f..253344d3b5ff636601171c15f514b1cffa6da626 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.h
+++ b/content/browser/service_worker/service_worker_context_wrapper.h
@@ -91,6 +91,7 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
void GetAllOriginsInfo(const GetUsageInfoCallback& callback) override;
void DeleteForOrigin(const GURL& origin,
const ResultCallback& callback) override;
+ void SetForceUpdateOnPageLoadForOrigin(const GURL& origin) override;
void CheckHasServiceWorker(
const GURL& url,
const GURL& other_url,
@@ -185,6 +186,10 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
const GetUsageInfoCallback& callback,
const std::vector<ServiceWorkerRegistrationInfo>& registrations);
+ void DidGetRegistrationsForForceUpdateForOrigin(
+ const std::vector<scoped_refptr<ServiceWorkerRegistration>>&
+ registrations);
+
void DidCheckHasServiceWorker(const CheckHasServiceWorkerCallback& callback,
bool has_service_worker);

Powered by Google App Engine
This is Rietveld 408576698