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

Unified Diff: components/cronet/ios/cronet_environment.h

Issue 2644583002: Add configuration functions for HTTP cache type to Obj-C and C++ (Closed)
Patch Set: make enum more obj-c-compatible Created 3 years, 11 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
« no previous file with comments | « components/cronet/ios/Cronet.mm ('k') | components/cronet/ios/cronet_environment.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/ios/cronet_environment.h
diff --git a/components/cronet/ios/cronet_environment.h b/components/cronet/ios/cronet_environment.h
index fbcb74d84def55e3d1dc5e4c521ab330ebf8f332..59cb79627eaae374f1637f011f475303f506227b 100644
--- a/components/cronet/ios/cronet_environment.h
+++ b/components/cronet/ios/cronet_environment.h
@@ -87,6 +87,10 @@ class CronetEnvironment {
mock_cert_verifier_ = std::move(mock_cert_verifier);
}
+ void set_http_cache(URLRequestContextConfig::HttpCacheType http_cache) {
+ http_cache_ = http_cache;
+ }
+
void SetHostResolverRules(const std::string& host_resolver_rules);
void set_ssl_key_log_file_name(const std::string& ssl_key_log_file_name) {
@@ -131,6 +135,7 @@ class CronetEnvironment {
std::string quic_user_agent_id_;
std::string accept_language_;
std::string ssl_key_log_file_name_;
+ URLRequestContextConfig::HttpCacheType http_cache_;
std::list<net::HostPortPair> quic_hints_;
« no previous file with comments | « components/cronet/ios/Cronet.mm ('k') | components/cronet/ios/cronet_environment.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698