OLD | NEW |
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 quic_random(NULL), | 118 quic_random(NULL), |
119 quic_max_packet_length(kDefaultMaxPacketSize), | 119 quic_max_packet_length(kDefaultMaxPacketSize), |
120 enable_user_alternate_protocol_ports(false), | 120 enable_user_alternate_protocol_ports(false), |
121 quic_crypto_client_stream_factory(NULL), | 121 quic_crypto_client_stream_factory(NULL), |
122 quic_max_recent_disabled_reasons(kQuicMaxRecentDisabledReasons), | 122 quic_max_recent_disabled_reasons(kQuicMaxRecentDisabledReasons), |
123 quic_threshold_public_resets_post_handshake(0), | 123 quic_threshold_public_resets_post_handshake(0), |
124 quic_threshold_timeouts_streams_open(0), | 124 quic_threshold_timeouts_streams_open(0), |
125 quic_close_sessions_on_ip_change(false), | 125 quic_close_sessions_on_ip_change(false), |
126 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds), | 126 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds), |
127 quic_disable_preconnect_if_0rtt(false), | 127 quic_disable_preconnect_if_0rtt(false), |
| 128 quic_migrate_sessions_on_network_change(false), |
128 proxy_delegate(NULL) { | 129 proxy_delegate(NULL) { |
129 quic_supported_versions.push_back(QUIC_VERSION_25); | 130 quic_supported_versions.push_back(QUIC_VERSION_25); |
130 } | 131 } |
131 | 132 |
132 HttpNetworkSession::Params::~Params() {} | 133 HttpNetworkSession::Params::~Params() {} |
133 | 134 |
134 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. | 135 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. |
135 HttpNetworkSession::HttpNetworkSession(const Params& params) | 136 HttpNetworkSession::HttpNetworkSession(const Params& params) |
136 : net_log_(params.net_log), | 137 : net_log_(params.net_log), |
137 network_delegate_(params.network_delegate), | 138 network_delegate_(params.network_delegate), |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 params.quic_max_number_of_lossy_connections, | 170 params.quic_max_number_of_lossy_connections, |
170 params.quic_packet_loss_threshold, | 171 params.quic_packet_loss_threshold, |
171 params.quic_max_recent_disabled_reasons, | 172 params.quic_max_recent_disabled_reasons, |
172 params.quic_threshold_public_resets_post_handshake, | 173 params.quic_threshold_public_resets_post_handshake, |
173 params.quic_threshold_timeouts_streams_open, | 174 params.quic_threshold_timeouts_streams_open, |
174 params.quic_socket_receive_buffer_size, | 175 params.quic_socket_receive_buffer_size, |
175 params.quic_delay_tcp_race, | 176 params.quic_delay_tcp_race, |
176 params.quic_store_server_configs_in_properties, | 177 params.quic_store_server_configs_in_properties, |
177 params.quic_close_sessions_on_ip_change, | 178 params.quic_close_sessions_on_ip_change, |
178 params.quic_idle_connection_timeout_seconds, | 179 params.quic_idle_connection_timeout_seconds, |
| 180 params.quic_migrate_sessions_on_network_change, |
179 params.quic_connection_options), | 181 params.quic_connection_options), |
180 spdy_session_pool_(params.host_resolver, | 182 spdy_session_pool_(params.host_resolver, |
181 params.ssl_config_service, | 183 params.ssl_config_service, |
182 params.http_server_properties, | 184 params.http_server_properties, |
183 params.transport_security_state, | 185 params.transport_security_state, |
184 params.enable_spdy_compression, | 186 params.enable_spdy_compression, |
185 params.enable_spdy_ping_based_connection_checking, | 187 params.enable_spdy_ping_based_connection_checking, |
186 params.spdy_default_protocol, | 188 params.spdy_default_protocol, |
187 params.spdy_session_max_recv_window_size, | 189 params.spdy_session_max_recv_window_size, |
188 params.spdy_stream_max_recv_window_size, | 190 params.spdy_stream_max_recv_window_size, |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 case WEBSOCKET_SOCKET_POOL: | 366 case WEBSOCKET_SOCKET_POOL: |
365 return websocket_socket_pool_manager_.get(); | 367 return websocket_socket_pool_manager_.get(); |
366 default: | 368 default: |
367 NOTREACHED(); | 369 NOTREACHED(); |
368 break; | 370 break; |
369 } | 371 } |
370 return NULL; | 372 return NULL; |
371 } | 373 } |
372 | 374 |
373 } // namespace net | 375 } // namespace net |
OLD | NEW |