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

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

Issue 1613513003: Early connection migration in QUIC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@home
Patch Set: Comments addressed. Created 4 years, 10 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
« no previous file with comments | « net/http/http_network_session.h ('k') | net/quic/quic_chromium_client_session.h » ('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/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/atomic_sequence_num.h" 9 #include "base/atomic_sequence_num.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 enable_user_alternate_protocol_ports(false), 125 enable_user_alternate_protocol_ports(false),
126 quic_crypto_client_stream_factory( 126 quic_crypto_client_stream_factory(
127 QuicCryptoClientStreamFactory::GetDefaultFactory()), 127 QuicCryptoClientStreamFactory::GetDefaultFactory()),
128 quic_max_recent_disabled_reasons(kQuicMaxRecentDisabledReasons), 128 quic_max_recent_disabled_reasons(kQuicMaxRecentDisabledReasons),
129 quic_threshold_public_resets_post_handshake(0), 129 quic_threshold_public_resets_post_handshake(0),
130 quic_threshold_timeouts_streams_open(0), 130 quic_threshold_timeouts_streams_open(0),
131 quic_close_sessions_on_ip_change(false), 131 quic_close_sessions_on_ip_change(false),
132 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds), 132 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds),
133 quic_disable_preconnect_if_0rtt(false), 133 quic_disable_preconnect_if_0rtt(false),
134 quic_migrate_sessions_on_network_change(false), 134 quic_migrate_sessions_on_network_change(false),
135 quic_migrate_sessions_early(false),
135 proxy_delegate(NULL), 136 proxy_delegate(NULL),
136 enable_token_binding(false) { 137 enable_token_binding(false) {
137 quic_supported_versions.push_back(QUIC_VERSION_26); 138 quic_supported_versions.push_back(QUIC_VERSION_26);
138 } 139 }
139 140
140 HttpNetworkSession::Params::~Params() {} 141 HttpNetworkSession::Params::~Params() {}
141 142
142 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. 143 // TODO(mbelshe): Move the socket factories into HttpStreamFactory.
143 HttpNetworkSession::HttpNetworkSession(const Params& params) 144 HttpNetworkSession::HttpNetworkSession(const Params& params)
144 : net_log_(params.net_log), 145 : net_log_(params.net_log),
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 params.quic_max_recent_disabled_reasons, 180 params.quic_max_recent_disabled_reasons,
180 params.quic_threshold_public_resets_post_handshake, 181 params.quic_threshold_public_resets_post_handshake,
181 params.quic_threshold_timeouts_streams_open, 182 params.quic_threshold_timeouts_streams_open,
182 params.quic_socket_receive_buffer_size, 183 params.quic_socket_receive_buffer_size,
183 params.quic_delay_tcp_race, 184 params.quic_delay_tcp_race,
184 params.quic_max_server_configs_stored_in_properties, 185 params.quic_max_server_configs_stored_in_properties,
185 params.quic_close_sessions_on_ip_change, 186 params.quic_close_sessions_on_ip_change,
186 params.disable_quic_on_timeout_with_open_streams, 187 params.disable_quic_on_timeout_with_open_streams,
187 params.quic_idle_connection_timeout_seconds, 188 params.quic_idle_connection_timeout_seconds,
188 params.quic_migrate_sessions_on_network_change, 189 params.quic_migrate_sessions_on_network_change,
190 params.quic_migrate_sessions_early,
189 params.quic_connection_options), 191 params.quic_connection_options),
190 spdy_session_pool_(params.host_resolver, 192 spdy_session_pool_(params.host_resolver,
191 params.ssl_config_service, 193 params.ssl_config_service,
192 params.http_server_properties, 194 params.http_server_properties,
193 params.transport_security_state, 195 params.transport_security_state,
194 params.enable_spdy_compression, 196 params.enable_spdy_compression,
195 params.enable_spdy_ping_based_connection_checking, 197 params.enable_spdy_ping_based_connection_checking,
196 params.spdy_default_protocol, 198 params.spdy_default_protocol,
197 params.spdy_session_max_recv_window_size, 199 params.spdy_session_max_recv_window_size,
198 params.spdy_stream_max_recv_window_size, 200 params.spdy_stream_max_recv_window_size,
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 case WEBSOCKET_SOCKET_POOL: 394 case WEBSOCKET_SOCKET_POOL:
393 return websocket_socket_pool_manager_.get(); 395 return websocket_socket_pool_manager_.get();
394 default: 396 default:
395 NOTREACHED(); 397 NOTREACHED();
396 break; 398 break;
397 } 399 }
398 return NULL; 400 return NULL;
399 } 401 }
400 402
401 } // namespace net 403 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_session.h ('k') | net/quic/quic_chromium_client_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698