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

Unified Diff: content/browser/service_worker/service_worker_register_job.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_register_job.h
diff --git a/content/browser/service_worker/service_worker_register_job.h b/content/browser/service_worker/service_worker_register_job.h
index 92b083dc59ef9d31639d84a3bbebc8a788c01211..48e6d04192669294709546ed835a27b711be2dec 100644
--- a/content/browser/service_worker/service_worker_register_job.h
+++ b/content/browser/service_worker/service_worker_register_job.h
@@ -48,8 +48,8 @@ class ServiceWorkerRegisterJob : public ServiceWorkerRegisterJobBase,
// For registration jobs.
CONTENT_EXPORT ServiceWorkerRegisterJob(
base::WeakPtr<ServiceWorkerContextCore> context,
- const GURL& pattern,
- const GURL& script_url);
+ const GURL& script_url,
+ const ServiceWorkerRegistrationOptions& options);
// For update jobs.
CONTENT_EXPORT ServiceWorkerRegisterJob(
@@ -154,6 +154,7 @@ class ServiceWorkerRegisterJob : public ServiceWorkerRegisterJobBase,
RegistrationJobType job_type_;
const GURL pattern_;
GURL script_url_;
+ const blink::WebServiceWorkerUpdateViaCache update_via_cache_;
std::vector<RegistrationCallback> callbacks_;
Phase phase_;
Internal internal_;

Powered by Google App Engine
This is Rietveld 408576698