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

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: fix tests Created 3 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_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 4fff29b8c55116741e7ab7d668e36ac11c0bd0d2..14f592b14722f3f32ee8fa28495134c62bfb9446 100644
--- a/content/browser/service_worker/service_worker_register_job.h
+++ b/content/browser/service_worker/service_worker_register_job.h
@@ -44,8 +44,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(
@@ -148,6 +148,7 @@ class ServiceWorkerRegisterJob : public ServiceWorkerRegisterJobBase,
RegistrationJobType job_type_;
const GURL pattern_;
GURL script_url_;
+ const bool use_cache_;
std::vector<RegistrationCallback> callbacks_;
Phase phase_;
Internal internal_;

Powered by Google App Engine
This is Rietveld 408576698