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

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 a database error 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..adc319b3da27cf6c9af7d1e6b23085cf97d4ab9c 100644
--- a/content/browser/service_worker/service_worker_database.proto
+++ b/content/browser/service_worker/service_worker_database.proto
@@ -23,6 +23,13 @@ message ServiceWorkerNavigationPreloadState {
}
message ServiceWorkerRegistrationData {
+ enum ServiceWorkerUpdateViaCacheType {
+ UNKNOWN = 0;
nhiroki 2017/08/04 09:24:50 I wonder if we don't have to have UNKNOWN type bec
yuryu 2017/08/17 07:36:35 Done.
+ IMPORTS = 1;
+ ALL = 2;
+ NONE = 3;
+ }
+
required int64 registration_id = 1;
required string scope_url = 2;
required string script_url = 3;
@@ -54,6 +61,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