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

Unified Diff: content/browser/service_worker/service_worker_registration.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_registration.h
diff --git a/content/browser/service_worker/service_worker_registration.h b/content/browser/service_worker/service_worker_registration.h
index e0f107a2926914ae7f8b718fddb3fbbf2d178925..ae41cedc0f53ab1faa45c763ea300c00fd7d778a 100644
--- a/content/browser/service_worker/service_worker_registration.h
+++ b/content/browser/service_worker/service_worker_registration.h
@@ -50,12 +50,15 @@ class CONTENT_EXPORT ServiceWorkerRegistration
virtual void OnSkippedWaiting(ServiceWorkerRegistration* registation) {}
};
- ServiceWorkerRegistration(const GURL& pattern,
+ ServiceWorkerRegistration(const ServiceWorkerRegistrationOptions& options,
int64_t registration_id,
base::WeakPtr<ServiceWorkerContextCore> context);
int64_t id() const { return registration_id_; }
const GURL& pattern() const { return pattern_; }
+ blink::WebServiceWorkerUpdateViaCache update_via_cache() const {
+ return update_via_cache_;
+ }
bool is_deleted() const { return is_deleted_; }
void set_is_deleted(bool deleted) { is_deleted_ = deleted; }
@@ -195,6 +198,7 @@ class CONTENT_EXPORT ServiceWorkerRegistration
ServiceWorkerStatusCode status);
const GURL pattern_;
+ const blink::WebServiceWorkerUpdateViaCache update_via_cache_;
const int64_t registration_id_;
bool is_deleted_;
bool is_uninstalling_;

Powered by Google App Engine
This is Rietveld 408576698