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

Side by Side Diff: components/cronet/url_request_context_config.h

Issue 2839413003: Delete Cronet Data Reduction Proxy integration (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 int http_cache_max_size, 95 int http_cache_max_size,
96 // Disable caching for HTTP responses. Other information may be stored in 96 // Disable caching for HTTP responses. Other information may be stored in
97 // the cache. 97 // the cache.
98 bool load_disable_cache, 98 bool load_disable_cache,
99 // Storage path for http cache and cookie storage. 99 // Storage path for http cache and cookie storage.
100 const std::string& storage_path, 100 const std::string& storage_path,
101 // User-Agent request header field. 101 // User-Agent request header field.
102 const std::string& user_agent, 102 const std::string& user_agent,
103 // JSON encoded experimental options. 103 // JSON encoded experimental options.
104 const std::string& experimental_options, 104 const std::string& experimental_options,
105 // Data reduction proxy key.
106 const std::string& data_reduction_proxy_key,
107 // Data reduction proxy.
108 const std::string& data_reduction_primary_proxy,
109 // Fallback data reduction proxy.
110 const std::string& data_reduction_fallback_proxy,
111 // Data reduction proxy secure proxy check URL.
112 const std::string& data_reduction_secure_proxy_check_url,
113 // MockCertVerifier to use for testing purposes. 105 // MockCertVerifier to use for testing purposes.
114 std::unique_ptr<net::CertVerifier> mock_cert_verifier, 106 std::unique_ptr<net::CertVerifier> mock_cert_verifier,
115 // Enable network quality estimator. 107 // Enable network quality estimator.
116 bool enable_network_quality_estimator, 108 bool enable_network_quality_estimator,
117 // Enable bypassing of public key pinning for local trust anchors 109 // Enable bypassing of public key pinning for local trust anchors
118 bool bypass_public_key_pinning_for_local_trust_anchors, 110 bool bypass_public_key_pinning_for_local_trust_anchors,
119 // Certificate verifier cache data. 111 // Certificate verifier cache data.
120 const std::string& cert_verifier_data); 112 const std::string& cert_verifier_data);
121 ~URLRequestContextConfig(); 113 ~URLRequestContextConfig();
122 114
(...skipping 24 matching lines...) Expand all
147 const std::string storage_path; 139 const std::string storage_path;
148 // User-Agent request header field. 140 // User-Agent request header field.
149 const std::string user_agent; 141 const std::string user_agent;
150 // Experimental options encoded as a string in a JSON format containing 142 // Experimental options encoded as a string in a JSON format containing
151 // experiments and their corresponding configuration options. The format 143 // experiments and their corresponding configuration options. The format
152 // is a JSON object with the name of the experiment as the key, and the 144 // is a JSON object with the name of the experiment as the key, and the
153 // configuration options as the value. An example: 145 // configuration options as the value. An example:
154 // {"experiment1": {"option1": "option_value1", "option2": "option_value2", 146 // {"experiment1": {"option1": "option_value1", "option2": "option_value2",
155 // ...}, "experiment2: {"option3", "option_value3", ...}, ...} 147 // ...}, "experiment2: {"option3", "option_value3", ...}, ...}
156 const std::string experimental_options; 148 const std::string experimental_options;
157 // Enable Data Reduction Proxy with authentication key.
158 const std::string data_reduction_proxy_key;
159 const std::string data_reduction_primary_proxy;
160 const std::string data_reduction_fallback_proxy;
161 const std::string data_reduction_secure_proxy_check_url;
162 149
163 // Certificate verifier for testing. 150 // Certificate verifier for testing.
164 std::unique_ptr<net::CertVerifier> mock_cert_verifier; 151 std::unique_ptr<net::CertVerifier> mock_cert_verifier;
165 152
166 // Enable network quality estimator. 153 // Enable network quality estimator.
167 const bool enable_network_quality_estimator; 154 const bool enable_network_quality_estimator;
168 155
169 // Enable public key pinning bypass for local trust anchors. 156 // Enable public key pinning bypass for local trust anchors.
170 const bool bypass_public_key_pinning_for_local_trust_anchors; 157 const bool bypass_public_key_pinning_for_local_trust_anchors;
171 158
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 std::string storage_path = ""; 206 std::string storage_path = "";
220 // User-Agent request header field. 207 // User-Agent request header field.
221 std::string user_agent = ""; 208 std::string user_agent = "";
222 // Experimental options encoded as a string in a JSON format containing 209 // Experimental options encoded as a string in a JSON format containing
223 // experiments and their corresponding configuration options. The format 210 // experiments and their corresponding configuration options. The format
224 // is a JSON object with the name of the experiment as the key, and the 211 // is a JSON object with the name of the experiment as the key, and the
225 // configuration options as the value. An example: 212 // configuration options as the value. An example:
226 // {"experiment1": {"option1": "option_value1", "option2": "option_value2", 213 // {"experiment1": {"option1": "option_value1", "option2": "option_value2",
227 // ...}, "experiment2: {"option3", "option_value3", ...}, ...} 214 // ...}, "experiment2: {"option3", "option_value3", ...}, ...}
228 std::string experimental_options = "{}"; 215 std::string experimental_options = "{}";
229 // Enable Data Reduction Proxy with authentication key.
230 std::string data_reduction_proxy_key = "";
231 std::string data_reduction_primary_proxy = "";
232 std::string data_reduction_fallback_proxy = "";
233 std::string data_reduction_secure_proxy_check_url = "";
234 216
235 // Certificate verifier for testing. 217 // Certificate verifier for testing.
236 std::unique_ptr<net::CertVerifier> mock_cert_verifier = nullptr; 218 std::unique_ptr<net::CertVerifier> mock_cert_verifier = nullptr;
237 219
238 // Enable network quality estimator. 220 // Enable network quality estimator.
239 bool enable_network_quality_estimator = false; 221 bool enable_network_quality_estimator = false;
240 222
241 // Enable public key pinning bypass for local trust anchors. 223 // Enable public key pinning bypass for local trust anchors.
242 bool bypass_public_key_pinning_for_local_trust_anchors = true; 224 bool bypass_public_key_pinning_for_local_trust_anchors = true;
243 225
244 // Data to populate CertVerifierCache. 226 // Data to populate CertVerifierCache.
245 std::string cert_verifier_data = ""; 227 std::string cert_verifier_data = "";
246 228
247 private: 229 private:
248 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfigBuilder); 230 DISALLOW_COPY_AND_ASSIGN(URLRequestContextConfigBuilder);
249 }; 231 };
250 232
251 } // namespace cronet 233 } // namespace cronet
252 234
253 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_ 235 #endif // COMPONENTS_CRONET_URL_REQUEST_CONTEXT_CONFIG_H_
OLDNEW
« no previous file with comments | « components/cronet/stale_host_resolver_unittest.cc ('k') | components/cronet/url_request_context_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698