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

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

Issue 1841863003: DevTools: move the force update SW on reload checkbox to the Resources / Service Workers view. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fixed Created 4 years, 9 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_context_core.h
diff --git a/content/browser/service_worker/service_worker_context_core.h b/content/browser/service_worker/service_worker_context_core.h
index 0defe3474d6690cbba20637ad94d1eb1a885d25f..2551336bd457db262d528ccb30a80175867b1567 100644
--- a/content/browser/service_worker/service_worker_context_core.h
+++ b/content/browser/service_worker/service_worker_context_core.h
@@ -207,13 +207,15 @@ class CONTENT_EXPORT ServiceWorkerContextCore
ServiceWorkerProviderHost* provider_host,
const UpdateCallback& callback);
- // Used in DevTools to update the service worker registration without
- // consulting the browser cache while loading the controlled page. The loading
- // is delayed until the update completes and the new worker is activated. The
- // new worker skips the waiting state and immediately becomes active after
- // installed.
- void SetForceUpdateOnPageLoad(int64_t registration_id,
- bool force_update_on_page_load);
+ // Used in DevTools to update the service worker registrations without
+ // consulting the browser cache while loading the controlled page. The
+ // loading is delayed until the update completes and the new worker is
+ // activated. The new worker skips the waiting state and immediately
+ // becomes active after installed.
+ bool force_update_on_page_load() { return force_update_on_page_load_; }
+ void set_force_update_on_page_load(bool force_update_on_page_load) {
+ force_update_on_page_load_ = force_update_on_page_load;
+ }
// This class maintains collections of live instances, this class
// does not own these object or influence their lifetime.
@@ -345,6 +347,7 @@ class CONTENT_EXPORT ServiceWorkerContextCore
std::map<int, ServiceWorkerNavigationHandleCore*>
navigation_handle_cores_map_;
+ bool force_update_on_page_load_;
int next_handle_id_;
int next_registration_handle_id_;
// Set in RegisterServiceWorker(), cleared in ClearAllServiceWorkersForTest().

Powered by Google App Engine
This is Rietveld 408576698