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

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

Issue 2433273003: service worker: Plumb NavigationPreloadManager.enable/disable to browser-side (Closed)
Patch Set: comments 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_registration.h
diff --git a/content/browser/service_worker/service_worker_registration.h b/content/browser/service_worker/service_worker_registration.h
index 8a69821a962e97204ebe555b4a357c396c75c41a..12bd008d8c031701502ce2bbfa9a52ac2b9773a6 100644
--- a/content/browser/service_worker/service_worker_registration.h
+++ b/content/browser/service_worker/service_worker_registration.h
@@ -150,6 +150,8 @@ class CONTENT_EXPORT ServiceWorkerRegistration
void SetTaskRunnerForTest(
scoped_refptr<base::SingleThreadTaskRunner> task_runner);
+ void EnableNavigationPreload(bool enable);
+
private:
friend class base::RefCounted<ServiceWorkerRegistration>;
@@ -192,6 +194,7 @@ class CONTENT_EXPORT ServiceWorkerRegistration
bool is_uninstalling_;
bool is_uninstalled_;
bool should_activate_when_ready_;
+ bool is_navigation_preload_enabled_;
base::Time last_update_check_;
int64_t resources_total_size_bytes_;

Powered by Google App Engine
This is Rietveld 408576698