OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ | 5 #ifndef COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ |
6 #define COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ | 6 #define COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
160 | 160 |
161 // Data to populte CertVerifierCache. | 161 // Data to populte CertVerifierCache. |
162 const std::string cert_verifier_data; | 162 const std::string cert_verifier_data; |
163 | 163 |
164 // App-provided list of servers that support QUIC. | 164 // App-provided list of servers that support QUIC. |
165 std::vector<std::unique_ptr<QuicHint>> quic_hints; | 165 std::vector<std::unique_ptr<QuicHint>> quic_hints; |
166 | 166 |
167 // The list of public key pins. | 167 // The list of public key pins. |
168 std::vector<std::unique_ptr<Pkp>> pkp_list; | 168 std::vector<std::unique_ptr<Pkp>> pkp_list; |
169 | 169 |
170 // Enable DNS cache persistence. | |
171 bool enable_host_cache_persistence = false; | |
172 | |
173 // Minimum time in milliseconds between writing the HostCache contents to | |
174 // 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.
| |
175 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.
| |
176 | |
170 // Experimental options that are recognized by the config parser. | 177 // Experimental options that are recognized by the config parser. |
171 std::unique_ptr<base::DictionaryValue> effective_experimental_options = | 178 std::unique_ptr<base::DictionaryValue> effective_experimental_options = |
172 nullptr; | 179 nullptr; |
173 | 180 |
174 private: | 181 private: |
175 // Parses experimental options and makes appropriate changes to settings in | 182 // Parses experimental options and makes appropriate changes to settings in |
176 // the URLRequestContextConfig and URLRequestContextBuilder. | 183 // the URLRequestContextConfig and URLRequestContextBuilder. |
177 void ParseAndSetExperimentalOptions( | 184 void ParseAndSetExperimentalOptions( |
178 net::URLRequestContextBuilder* context_builder, | 185 net::URLRequestContextBuilder* context_builder, |
179 net::NetLog* net_log, | 186 net::NetLog* net_log, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
236 // Data to populate CertVerifierCache. | 243 // Data to populate CertVerifierCache. |
237 std::string cert_verifier_data = ""; | 244 std::string cert_verifier_data = ""; |
238 | 245 |
239 private: | 246 private: |
240 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfigBuilder); | 247 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfigBuilder); |
241 }; | 248 }; |
242 | 249 |
243 } // namespace cronet | 250 } // namespace cronet |
244 | 251 |
245 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ | 252 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ |
OLD | NEW |