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

Unified Diff: content/common/service_worker/service_worker_types.cc

Issue 2771823002: Implement updateViaCache flag and no-cache by default for main service worker scripts
Patch Set: fix IPC Created 3 years, 4 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/common/service_worker/service_worker_types.cc
diff --git a/content/common/service_worker/service_worker_types.cc b/content/common/service_worker/service_worker_types.cc
index e692f7015218294a7c883384f55c7ef17e5d0210..c4070033c582e5e85d3818113908f9c5723d4ee3 100644
--- a/content/common/service_worker/service_worker_types.cc
+++ b/content/common/service_worker/service_worker_types.cc
@@ -143,14 +143,23 @@ bool ServiceWorkerObjectInfo::IsValid() const {
version_id != kInvalidServiceWorkerVersionId;
}
+ServiceWorkerRegistrationOptions::ServiceWorkerRegistrationOptions()
+ : update_via_cache(blink::WebServiceWorkerUpdateViaCache::kImports) {}
+
ServiceWorkerRegistrationOptions::ServiceWorkerRegistrationOptions(
const GURL& scope)
- : scope(scope) {}
+ : ServiceWorkerRegistrationOptions(
+ scope,
+ blink::WebServiceWorkerUpdateViaCache::kImports) {}
+
+ServiceWorkerRegistrationOptions::ServiceWorkerRegistrationOptions(
+ const GURL& scope,
+ blink::WebServiceWorkerUpdateViaCache update_via_cache)
+ : scope(scope), update_via_cache(update_via_cache) {}
ServiceWorkerRegistrationObjectInfo::ServiceWorkerRegistrationObjectInfo()
: handle_id(kInvalidServiceWorkerRegistrationHandleId),
- registration_id(kInvalidServiceWorkerRegistrationId) {
-}
+ registration_id(kInvalidServiceWorkerRegistrationId) {}
ServiceWorkerClientQueryOptions::ServiceWorkerClientQueryOptions()
: client_type(blink::kWebServiceWorkerClientTypeWindow),
« no previous file with comments | « content/common/service_worker/service_worker_types.h ('k') | content/public/browser/service_worker_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698