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

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

Issue 1327923002: Migrates QUIC sessions to a new network when old network is (about to be) disconnected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@home
Patch Set: Fixes and responses to outstanding comments Created 5 years, 1 month 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 (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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 quic_store_server_configs_in_properties(false), 111 quic_store_server_configs_in_properties(false),
112 quic_clock(NULL), 112 quic_clock(NULL),
113 quic_random(NULL), 113 quic_random(NULL),
114 quic_max_packet_length(kDefaultMaxPacketSize), 114 quic_max_packet_length(kDefaultMaxPacketSize),
115 enable_user_alternate_protocol_ports(false), 115 enable_user_alternate_protocol_ports(false),
116 quic_crypto_client_stream_factory(NULL), 116 quic_crypto_client_stream_factory(NULL),
117 quic_max_recent_disabled_reasons(kQuicMaxRecentDisabledReasons), 117 quic_max_recent_disabled_reasons(kQuicMaxRecentDisabledReasons),
118 quic_threshold_public_resets_post_handshake(0), 118 quic_threshold_public_resets_post_handshake(0),
119 quic_threshold_timeouts_streams_open(0), 119 quic_threshold_timeouts_streams_open(0),
120 quic_close_sessions_on_ip_change(false), 120 quic_close_sessions_on_ip_change(false),
121 quic_migrate_sessions_on_net_change(false),
121 proxy_delegate(NULL) { 122 proxy_delegate(NULL) {
122 quic_supported_versions.push_back(QUIC_VERSION_27); 123 quic_supported_versions.push_back(QUIC_VERSION_27);
123 } 124 }
124 125
125 HttpNetworkSession::Params::~Params() {} 126 HttpNetworkSession::Params::~Params() {}
126 127
127 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. 128 // TODO(mbelshe): Move the socket factories into HttpStreamFactory.
128 HttpNetworkSession::HttpNetworkSession(const Params& params) 129 HttpNetworkSession::HttpNetworkSession(const Params& params)
129 : net_log_(params.net_log), 130 : net_log_(params.net_log),
130 network_delegate_(params.network_delegate), 131 network_delegate_(params.network_delegate),
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 params.quic_prefer_aes, 165 params.quic_prefer_aes,
165 params.quic_max_number_of_lossy_connections, 166 params.quic_max_number_of_lossy_connections,
166 params.quic_packet_loss_threshold, 167 params.quic_packet_loss_threshold,
167 params.quic_max_recent_disabled_reasons, 168 params.quic_max_recent_disabled_reasons,
168 params.quic_threshold_public_resets_post_handshake, 169 params.quic_threshold_public_resets_post_handshake,
169 params.quic_threshold_timeouts_streams_open, 170 params.quic_threshold_timeouts_streams_open,
170 params.quic_socket_receive_buffer_size, 171 params.quic_socket_receive_buffer_size,
171 params.quic_delay_tcp_race, 172 params.quic_delay_tcp_race,
172 params.quic_store_server_configs_in_properties, 173 params.quic_store_server_configs_in_properties,
173 params.quic_close_sessions_on_ip_change, 174 params.quic_close_sessions_on_ip_change,
175 params.quic_migrate_sessions_on_net_change,
174 params.quic_connection_options), 176 params.quic_connection_options),
175 spdy_session_pool_(params.host_resolver, 177 spdy_session_pool_(params.host_resolver,
176 params.ssl_config_service, 178 params.ssl_config_service,
177 params.http_server_properties, 179 params.http_server_properties,
178 params.transport_security_state, 180 params.transport_security_state,
179 params.enable_spdy_compression, 181 params.enable_spdy_compression,
180 params.enable_spdy_ping_based_connection_checking, 182 params.enable_spdy_ping_based_connection_checking,
181 params.spdy_default_protocol, 183 params.spdy_default_protocol,
182 params.spdy_session_max_recv_window_size, 184 params.spdy_session_max_recv_window_size,
183 params.spdy_stream_max_recv_window_size, 185 params.spdy_stream_max_recv_window_size,
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 case WEBSOCKET_SOCKET_POOL: 355 case WEBSOCKET_SOCKET_POOL:
354 return websocket_socket_pool_manager_.get(); 356 return websocket_socket_pool_manager_.get();
355 default: 357 default:
356 NOTREACHED(); 358 NOTREACHED();
357 break; 359 break;
358 } 360 }
359 return NULL; 361 return NULL;
360 } 362 }
361 363
362 } // namespace net 364 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698