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

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

Issue 2521793004: service worker: Persist NavigationPreloadState (Closed)
Patch Set: expect_ name Created 4 years, 1 month 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 6bb84561f146cbe08dafdd555475e13645f7eda1..3ae7551f30a2337597569d228641383008844b84 100644
--- a/content/browser/service_worker/service_worker_database.proto
+++ b/content/browser/service_worker/service_worker_database.proto
@@ -17,6 +17,11 @@ message ServiceWorkerOriginTrialInfo {
repeated ServiceWorkerOriginTrialFeature features = 1;
}
+message ServiceWorkerNavigationPreloadState {
+ required bool enabled = 1;
+ optional string header = 2;
+}
+
message ServiceWorkerRegistrationData {
required int64 registration_id = 1;
required string scope_url = 2;
@@ -43,6 +48,8 @@ message ServiceWorkerRegistrationData {
// Service Worker and load the main script resource in ServiceWorkerStorage
// to check the HTTP header.
optional ServiceWorkerOriginTrialInfo origin_trial_tokens = 11;
+
+ optional ServiceWorkerNavigationPreloadState navigation_preload_state = 12;
}
message ServiceWorkerResourceRecord {

Powered by Google App Engine
This is Rietveld 408576698