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

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

Issue 2771823002: Implement updateViaCache flag and no-cache by default for main service worker scripts
Patch Set: change useCache to updateViaCache Created 3 years, 6 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_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 a41d24539c4d0d08b3f70a0c9328b7b76858048a..39c8f0fddd3a88231b6700203ebfe9edc443bc6f 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.h
+++ b/content/browser/service_worker/service_worker_context_wrapper.h
@@ -97,9 +97,11 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
// ServiceWorkerContext implementation:
void AddObserver(ServiceWorkerContextObserver* observer) override;
void RemoveObserver(ServiceWorkerContextObserver* observer) override;
- void RegisterServiceWorker(const GURL& pattern,
- const GURL& script_url,
- const ResultCallback& continuation) override;
+ void RegisterServiceWorker(
+ const GURL& pattern,
+ const GURL& script_url,
+ blink::WebServiceWorkerUpdateViaCache update_via_cache,
+ const ResultCallback& continuation) override;
void UnregisterServiceWorker(const GURL& pattern,
const ResultCallback& continuation) override;
void GetAllOriginsInfo(const GetUsageInfoCallback& callback) override;

Powered by Google App Engine
This is Rietveld 408576698