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

Unified Diff: components/cronet/url_request_context_config.h

Issue 2954753002: Add Cronet experimental option for host cache persistence (Closed)
Patch Set: address comments 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..51eb80b635821c9b17b81ea6856f7905c9c090c0 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. Only relevant when |enable_host_cache_persistence| is true.
+ int host_cache_persistence_delay_ms = 60000;
+
// 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