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

Unified Diff: content/browser/service_worker/service_worker_version.h

Issue 2417793002: Introduce FetchEventPreloadHandle to pass the preload response to FetchEvent. (Closed)
Patch Set: incorporated dchecng's comment Created 4 years, 2 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_version.h
diff --git a/content/browser/service_worker/service_worker_version.h b/content/browser/service_worker/service_worker_version.h
index 39ced7a0f2d5b8610b875a14eab6a271067756e1..8cac35fabb7a549161fc7d8584b348dd8dfefc32 100644
--- a/content/browser/service_worker/service_worker_version.h
+++ b/content/browser/service_worker/service_worker_version.h
@@ -170,6 +170,13 @@ class CONTENT_EXPORT ServiceWorkerVersion
foreign_fetch_origins_ = origins;
}
+ bool navigation_preload_enabled() const {
+ return navigation_preload_enabled_;
+ }
+ void set_navigation_preload_enabled(bool enabled) {
+ navigation_preload_enabled_ = enabled;
+ }
+
ServiceWorkerMetrics::Site site_for_uma() const { return site_for_uma_; }
// This sets the new status and also run status change callbacks
@@ -702,6 +709,7 @@ class CONTENT_EXPORT ServiceWorkerVersion
std::vector<GURL> foreign_fetch_scopes_;
std::vector<url::Origin> foreign_fetch_origins_;
FetchHandlerExistence fetch_handler_existence_;
+ bool navigation_preload_enabled_ = false;
ServiceWorkerMetrics::Site site_for_uma_;
Status status_ = NEW;

Powered by Google App Engine
This is Rietveld 408576698