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 | 10 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 const std::string& experimental_options, | 100 const std::string& experimental_options, |
101 // Data reduction proxy key. | 101 // Data reduction proxy key. |
102 const std::string& data_reduction_proxy_key, | 102 const std::string& data_reduction_proxy_key, |
103 // Data reduction proxy. | 103 // Data reduction proxy. |
104 const std::string& data_reduction_primary_proxy, | 104 const std::string& data_reduction_primary_proxy, |
105 // Fallback data reduction proxy. | 105 // Fallback data reduction proxy. |
106 const std::string& data_reduction_fallback_proxy, | 106 const std::string& data_reduction_fallback_proxy, |
107 // Data reduction proxy secure proxy check URL. | 107 // Data reduction proxy secure proxy check URL. |
108 const std::string& data_reduction_secure_proxy_check_url, | 108 const std::string& data_reduction_secure_proxy_check_url, |
109 // MockCertVerifier to use for testing purposes. | 109 // MockCertVerifier to use for testing purposes. |
110 std::unique_ptr<net::CertVerifier> mock_cert_verifier); | 110 std::unique_ptr<net::CertVerifier> mock_cert_verifier, |
| 111 // Enable network quality estimator. |
| 112 bool enable_network_quality_estimator); |
111 ~URLRequestContextConfig(); | 113 ~URLRequestContextConfig(); |
112 | 114 |
113 // Configure |context_builder| based on |this|. | 115 // Configure |context_builder| based on |this|. |
114 void ConfigureURLRequestContextBuilder( | 116 void ConfigureURLRequestContextBuilder( |
115 net::URLRequestContextBuilder* context_builder, | 117 net::URLRequestContextBuilder* context_builder, |
116 net::NetLog* net_log, | 118 net::NetLog* net_log, |
117 const scoped_refptr<base::SequencedTaskRunner>& file_task_runner); | 119 const scoped_refptr<base::SequencedTaskRunner>& file_task_runner); |
118 | 120 |
119 // Enable QUIC. | 121 // Enable QUIC. |
120 const bool enable_quic; | 122 const bool enable_quic; |
(...skipping 23 matching lines...) Expand all Loading... |
144 const std::string experimental_options; | 146 const std::string experimental_options; |
145 // Enable Data Reduction Proxy with authentication key. | 147 // Enable Data Reduction Proxy with authentication key. |
146 const std::string data_reduction_proxy_key; | 148 const std::string data_reduction_proxy_key; |
147 const std::string data_reduction_primary_proxy; | 149 const std::string data_reduction_primary_proxy; |
148 const std::string data_reduction_fallback_proxy; | 150 const std::string data_reduction_fallback_proxy; |
149 const std::string data_reduction_secure_proxy_check_url; | 151 const std::string data_reduction_secure_proxy_check_url; |
150 | 152 |
151 // Certificate verifier for testing. | 153 // Certificate verifier for testing. |
152 std::unique_ptr<net::CertVerifier> mock_cert_verifier; | 154 std::unique_ptr<net::CertVerifier> mock_cert_verifier; |
153 | 155 |
| 156 // Enable network quality estimator. |
| 157 const bool enable_network_quality_estimator; |
| 158 |
154 // App-provided list of servers that support QUIC. | 159 // App-provided list of servers that support QUIC. |
155 ScopedVector<QuicHint> quic_hints; | 160 ScopedVector<QuicHint> quic_hints; |
156 | 161 |
157 // The list of public key pins. | 162 // The list of public key pins. |
158 ScopedVector<Pkp> pkp_list; | 163 ScopedVector<Pkp> pkp_list; |
159 | 164 |
160 private: | 165 private: |
161 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfig); | 166 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfig); |
162 }; | 167 }; |
163 | 168 |
164 } // namespace cronet | 169 } // namespace cronet |
165 | 170 |
166 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ | 171 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ |
OLD | NEW |