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

Unified Diff: content/browser/service_worker/service_worker_database.proto

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/browser/service_worker/service_worker_database.proto
diff --git a/content/browser/service_worker/service_worker_database.proto b/content/browser/service_worker/service_worker_database.proto
index 892001d00c0b94865b7c3f068984b62b5365fbe2..6009a1133ec9de6c67b2c80a1b76fc08cfb13e30 100644
--- a/content/browser/service_worker/service_worker_database.proto
+++ b/content/browser/service_worker/service_worker_database.proto
@@ -23,6 +23,12 @@ message ServiceWorkerNavigationPreloadState {
}
message ServiceWorkerRegistrationData {
+ enum ServiceWorkerUpdateViaCacheType {
+ IMPORTS = 1;
+ ALL = 2;
+ NONE = 3;
+ }
+
required int64 registration_id = 1;
required string scope_url = 2;
required string script_url = 3;
@@ -54,6 +60,9 @@ message ServiceWorkerRegistrationData {
// The set of features that the worker used up until the time installation
// completed. The values must be from blink::UseCounter::Feature enum.
repeated uint32 used_features = 13;
+
+ optional ServiceWorkerUpdateViaCacheType update_via_cache = 14
+ [default = IMPORTS];
}
message ServiceWorkerResourceRecord {

Powered by Google App Engine
This is Rietveld 408576698