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

Side by Side Diff: net/http/http_network_session.cc

Issue 275953002: Remove HTTP pipelining support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 6 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 | Annotate | Revision Log
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/http/http_network_session.h" 5 #include "net/http/http_network_session.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/debug/stack_trace.h" 10 #include "base/debug/stack_trace.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 cert_verifier(NULL), 60 cert_verifier(NULL),
61 server_bound_cert_service(NULL), 61 server_bound_cert_service(NULL),
62 transport_security_state(NULL), 62 transport_security_state(NULL),
63 cert_transparency_verifier(NULL), 63 cert_transparency_verifier(NULL),
64 proxy_service(NULL), 64 proxy_service(NULL),
65 ssl_config_service(NULL), 65 ssl_config_service(NULL),
66 http_auth_handler_factory(NULL), 66 http_auth_handler_factory(NULL),
67 network_delegate(NULL), 67 network_delegate(NULL),
68 net_log(NULL), 68 net_log(NULL),
69 host_mapping_rules(NULL), 69 host_mapping_rules(NULL),
70 force_http_pipelining(false),
71 ignore_certificate_errors(false), 70 ignore_certificate_errors(false),
72 http_pipelining_enabled(false),
73 testing_fixed_http_port(0), 71 testing_fixed_http_port(0),
74 testing_fixed_https_port(0), 72 testing_fixed_https_port(0),
75 force_spdy_single_domain(false), 73 force_spdy_single_domain(false),
76 enable_spdy_compression(true), 74 enable_spdy_compression(true),
77 enable_spdy_ping_based_connection_checking(true), 75 enable_spdy_ping_based_connection_checking(true),
78 spdy_default_protocol(kProtoUnknown), 76 spdy_default_protocol(kProtoUnknown),
79 spdy_stream_initial_recv_window_size(0), 77 spdy_stream_initial_recv_window_size(0),
80 spdy_initial_max_concurrent_streams(0), 78 spdy_initial_max_concurrent_streams(0),
81 spdy_max_concurrent_streams_limit(0), 79 spdy_max_concurrent_streams_limit(0),
82 time_func(&base::TimeTicks::Now), 80 time_func(&base::TimeTicks::Now),
(...skipping 13 matching lines...) Expand all
96 94
97 HttpNetworkSession::Params::~Params() {} 95 HttpNetworkSession::Params::~Params() {}
98 96
99 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. 97 // TODO(mbelshe): Move the socket factories into HttpStreamFactory.
100 HttpNetworkSession::HttpNetworkSession(const Params& params) 98 HttpNetworkSession::HttpNetworkSession(const Params& params)
101 : net_log_(params.net_log), 99 : net_log_(params.net_log),
102 network_delegate_(params.network_delegate), 100 network_delegate_(params.network_delegate),
103 http_server_properties_(params.http_server_properties), 101 http_server_properties_(params.http_server_properties),
104 cert_verifier_(params.cert_verifier), 102 cert_verifier_(params.cert_verifier),
105 http_auth_handler_factory_(params.http_auth_handler_factory), 103 http_auth_handler_factory_(params.http_auth_handler_factory),
106 force_http_pipelining_(params.force_http_pipelining),
107 proxy_service_(params.proxy_service), 104 proxy_service_(params.proxy_service),
108 ssl_config_service_(params.ssl_config_service), 105 ssl_config_service_(params.ssl_config_service),
109 normal_socket_pool_manager_( 106 normal_socket_pool_manager_(
110 CreateSocketPoolManager(NORMAL_SOCKET_POOL, params)), 107 CreateSocketPoolManager(NORMAL_SOCKET_POOL, params)),
111 websocket_socket_pool_manager_( 108 websocket_socket_pool_manager_(
112 CreateSocketPoolManager(WEBSOCKET_SOCKET_POOL, params)), 109 CreateSocketPoolManager(WEBSOCKET_SOCKET_POOL, params)),
113 quic_stream_factory_(params.host_resolver, 110 quic_stream_factory_(params.host_resolver,
114 params.client_socket_factory ? 111 params.client_socket_factory ?
115 params.client_socket_factory : 112 params.client_socket_factory :
116 net::ClientSocketFactory::GetDefaultFactory(), 113 net::ClientSocketFactory::GetDefaultFactory(),
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 case WEBSOCKET_SOCKET_POOL: 242 case WEBSOCKET_SOCKET_POOL:
246 return websocket_socket_pool_manager_.get(); 243 return websocket_socket_pool_manager_.get();
247 default: 244 default:
248 NOTREACHED(); 245 NOTREACHED();
249 break; 246 break;
250 } 247 }
251 return NULL; 248 return NULL;
252 } 249 }
253 250
254 } // namespace net 251 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698