| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // JSON encoded experimental options. | 99 // JSON encoded experimental options. |
| 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 // Enable pinning of the locat trust anchors |
| 110 bool pin_local_trust_anchors, |
| 109 // MockCertVerifier to use for testing purposes. | 111 // MockCertVerifier to use for testing purposes. |
| 110 std::unique_ptr<net::CertVerifier> mock_cert_verifier); | 112 std::unique_ptr<net::CertVerifier> mock_cert_verifier); |
| 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 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 140 // is a JSON object with the name of the experiment as the key, and the | 142 // is a JSON object with the name of the experiment as the key, and the |
| 141 // configuration options as the value. An example: | 143 // configuration options as the value. An example: |
| 142 // {"experiment1": {"option1": "option_value1", "option2": "option_value2", | 144 // {"experiment1": {"option1": "option_value1", "option2": "option_value2", |
| 143 // ...}, "experiment2: {"option3", "option_value3", ...}, ...} | 145 // ...}, "experiment2: {"option3", "option_value3", ...}, ...} |
| 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; |
| 152 // Enable pinning of local trust anchors |
| 153 const bool pin_local_trust_anchors; |
| 150 | 154 |
| 151 // Certificate verifier for testing. | 155 // Certificate verifier for testing. |
| 152 std::unique_ptr<net::CertVerifier> mock_cert_verifier; | 156 std::unique_ptr<net::CertVerifier> mock_cert_verifier; |
| 153 | 157 |
| 154 // App-provided list of servers that support QUIC. | 158 // App-provided list of servers that support QUIC. |
| 155 ScopedVector<QuicHint> quic_hints; | 159 ScopedVector<QuicHint> quic_hints; |
| 156 | 160 |
| 157 // The list of public key pins. | 161 // The list of public key pins. |
| 158 ScopedVector<Pkp> pkp_list; | 162 ScopedVector<Pkp> pkp_list; |
| 159 | 163 |
| 160 private: | 164 private: |
| 161 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfig); | 165 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfig); |
| 162 }; | 166 }; |
| 163 | 167 |
| 164 } // namespace cronet | 168 } // namespace cronet |
| 165 | 169 |
| 166 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ | 170 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ |
| OLD | NEW |