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

Unified Diff: components/cronet/url_request_context_config.h

Issue 2954753002: Add Cronet experimental option for host cache persistence (Closed)
Patch Set: Created 3 years, 6 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: components/cronet/url_request_context_config.h
diff --git a/components/cronet/url_request_context_config.h b/components/cronet/url_request_context_config.h
index 7b13833b528f1485c3c576facd558a14d82b3c31..2a2aef0c27d183bd4716a6b7e5e17f7ecfc6fd62 100644
--- a/components/cronet/url_request_context_config.h
+++ b/components/cronet/url_request_context_config.h
@@ -167,6 +167,13 @@ struct URLRequestContextConfig {
// The list of public key pins.
std::vector<std::unique_ptr<Pkp>> pkp_list;
+ // Enable DNS cache persistence.
+ bool enable_host_cache_persistence = false;
+
+ // Minimum time in milliseconds between writing the HostCache contents to
+ // prefs.
pauljensen 2017/06/26 16:37:18 nit: might want to mention this value only has sig
mgersh 2017/06/26 23:21:45 Done.
+ int host_cache_persistence_timer = 60000;
pauljensen 2017/06/26 16:37:17 "timer" seems like an active name for a variable t
pauljensen 2017/06/26 16:37:17 could we add a unit suffix, like "_ms"?
mgersh 2017/06/26 23:21:45 Done. (I used "delay" instead of "interval" becaus
mgersh 2017/06/26 23:21:45 Done.
+
// Experimental options that are recognized by the config parser.
std::unique_ptr<base::DictionaryValue> effective_experimental_options =
nullptr;

Powered by Google App Engine
This is Rietveld 408576698