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

Side by Side Diff: net/url_request/url_request_context_builder.cc

Issue 275953002: Remove HTTP pipelining support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix line endings Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « net/url_request/url_request_context_builder.h ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "net/url_request/url_request_context_builder.h" 5 #include "net/url_request/url_request_context_builder.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 } // namespace 167 } // namespace
168 168
169 URLRequestContextBuilder::HttpCacheParams::HttpCacheParams() 169 URLRequestContextBuilder::HttpCacheParams::HttpCacheParams()
170 : type(IN_MEMORY), 170 : type(IN_MEMORY),
171 max_size(0) {} 171 max_size(0) {}
172 URLRequestContextBuilder::HttpCacheParams::~HttpCacheParams() {} 172 URLRequestContextBuilder::HttpCacheParams::~HttpCacheParams() {}
173 173
174 URLRequestContextBuilder::HttpNetworkSessionParams::HttpNetworkSessionParams() 174 URLRequestContextBuilder::HttpNetworkSessionParams::HttpNetworkSessionParams()
175 : ignore_certificate_errors(false), 175 : ignore_certificate_errors(false),
176 host_mapping_rules(NULL), 176 host_mapping_rules(NULL),
177 http_pipelining_enabled(false),
178 testing_fixed_http_port(0), 177 testing_fixed_http_port(0),
179 testing_fixed_https_port(0), 178 testing_fixed_https_port(0),
180 trusted_spdy_proxy() {} 179 trusted_spdy_proxy() {}
181 180
182 URLRequestContextBuilder::HttpNetworkSessionParams::~HttpNetworkSessionParams() 181 URLRequestContextBuilder::HttpNetworkSessionParams::~HttpNetworkSessionParams()
183 {} 182 {}
184 183
185 URLRequestContextBuilder::SchemeFactory::SchemeFactory( 184 URLRequestContextBuilder::SchemeFactory::SchemeFactory(
186 const std::string& auth_scheme, 185 const std::string& auth_scheme,
187 net::HttpAuthHandlerFactory* auth_handler_factory) 186 net::HttpAuthHandlerFactory* auth_handler_factory)
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 network_session_params.http_auth_handler_factory = 274 network_session_params.http_auth_handler_factory =
276 context->http_auth_handler_factory(); 275 context->http_auth_handler_factory();
277 network_session_params.network_delegate = network_delegate; 276 network_session_params.network_delegate = network_delegate;
278 network_session_params.http_server_properties = 277 network_session_params.http_server_properties =
279 context->http_server_properties(); 278 context->http_server_properties();
280 network_session_params.net_log = context->net_log(); 279 network_session_params.net_log = context->net_log();
281 network_session_params.ignore_certificate_errors = 280 network_session_params.ignore_certificate_errors =
282 http_network_session_params_.ignore_certificate_errors; 281 http_network_session_params_.ignore_certificate_errors;
283 network_session_params.host_mapping_rules = 282 network_session_params.host_mapping_rules =
284 http_network_session_params_.host_mapping_rules; 283 http_network_session_params_.host_mapping_rules;
285 network_session_params.http_pipelining_enabled =
286 http_network_session_params_.http_pipelining_enabled;
287 network_session_params.testing_fixed_http_port = 284 network_session_params.testing_fixed_http_port =
288 http_network_session_params_.testing_fixed_http_port; 285 http_network_session_params_.testing_fixed_http_port;
289 network_session_params.testing_fixed_https_port = 286 network_session_params.testing_fixed_https_port =
290 http_network_session_params_.testing_fixed_https_port; 287 http_network_session_params_.testing_fixed_https_port;
291 network_session_params.trusted_spdy_proxy = 288 network_session_params.trusted_spdy_proxy =
292 http_network_session_params_.trusted_spdy_proxy; 289 http_network_session_params_.trusted_spdy_proxy;
293 290
294 HttpTransactionFactory* http_transaction_factory = NULL; 291 HttpTransactionFactory* http_transaction_factory = NULL;
295 if (http_cache_enabled_) { 292 if (http_cache_enabled_) {
296 network_session_params.server_bound_cert_service = 293 network_session_params.server_bound_cert_service =
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 #endif // !defined(DISABLE_FTP_SUPPORT) 337 #endif // !defined(DISABLE_FTP_SUPPORT)
341 338
342 storage->set_job_factory(job_factory); 339 storage->set_job_factory(job_factory);
343 340
344 // TODO(willchan): Support sdch. 341 // TODO(willchan): Support sdch.
345 342
346 return context; 343 return context;
347 } 344 }
348 345
349 } // namespace net 346 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request_context_builder.h ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698