| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 enable_user_alternate_protocol_ports(false), | 123 enable_user_alternate_protocol_ports(false), |
| 124 quic_crypto_client_stream_factory( | 124 quic_crypto_client_stream_factory( |
| 125 QuicCryptoClientStreamFactory::GetDefaultFactory()), | 125 QuicCryptoClientStreamFactory::GetDefaultFactory()), |
| 126 quic_max_recent_disabled_reasons(kQuicMaxRecentDisabledReasons), | 126 quic_max_recent_disabled_reasons(kQuicMaxRecentDisabledReasons), |
| 127 quic_threshold_public_resets_post_handshake(0), | 127 quic_threshold_public_resets_post_handshake(0), |
| 128 quic_threshold_timeouts_streams_open(0), | 128 quic_threshold_timeouts_streams_open(0), |
| 129 quic_close_sessions_on_ip_change(false), | 129 quic_close_sessions_on_ip_change(false), |
| 130 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds), | 130 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds), |
| 131 quic_disable_preconnect_if_0rtt(false), | 131 quic_disable_preconnect_if_0rtt(false), |
| 132 quic_migrate_sessions_on_network_change(false), | 132 quic_migrate_sessions_on_network_change(false), |
| 133 quic_migrate_sessions_early(false), |
| 133 proxy_delegate(NULL), | 134 proxy_delegate(NULL), |
| 134 enable_token_binding(false) { | 135 enable_token_binding(false) { |
| 135 quic_supported_versions.push_back(QUIC_VERSION_25); | 136 quic_supported_versions.push_back(QUIC_VERSION_25); |
| 136 } | 137 } |
| 137 | 138 |
| 138 HttpNetworkSession::Params::~Params() {} | 139 HttpNetworkSession::Params::~Params() {} |
| 139 | 140 |
| 140 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. | 141 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. |
| 141 HttpNetworkSession::HttpNetworkSession(const Params& params) | 142 HttpNetworkSession::HttpNetworkSession(const Params& params) |
| 142 : net_log_(params.net_log), | 143 : net_log_(params.net_log), |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 params.quic_max_recent_disabled_reasons, | 178 params.quic_max_recent_disabled_reasons, |
| 178 params.quic_threshold_public_resets_post_handshake, | 179 params.quic_threshold_public_resets_post_handshake, |
| 179 params.quic_threshold_timeouts_streams_open, | 180 params.quic_threshold_timeouts_streams_open, |
| 180 params.quic_socket_receive_buffer_size, | 181 params.quic_socket_receive_buffer_size, |
| 181 params.quic_delay_tcp_race, | 182 params.quic_delay_tcp_race, |
| 182 params.quic_max_server_configs_stored_in_properties, | 183 params.quic_max_server_configs_stored_in_properties, |
| 183 params.quic_close_sessions_on_ip_change, | 184 params.quic_close_sessions_on_ip_change, |
| 184 params.disable_quic_on_timeout_with_open_streams, | 185 params.disable_quic_on_timeout_with_open_streams, |
| 185 params.quic_idle_connection_timeout_seconds, | 186 params.quic_idle_connection_timeout_seconds, |
| 186 params.quic_migrate_sessions_on_network_change, | 187 params.quic_migrate_sessions_on_network_change, |
| 188 params.quic_migrate_sessions_early, |
| 187 params.quic_connection_options), | 189 params.quic_connection_options), |
| 188 spdy_session_pool_(params.host_resolver, | 190 spdy_session_pool_(params.host_resolver, |
| 189 params.ssl_config_service, | 191 params.ssl_config_service, |
| 190 params.http_server_properties, | 192 params.http_server_properties, |
| 191 params.transport_security_state, | 193 params.transport_security_state, |
| 192 params.enable_spdy_compression, | 194 params.enable_spdy_compression, |
| 193 params.enable_spdy_ping_based_connection_checking, | 195 params.enable_spdy_ping_based_connection_checking, |
| 194 params.spdy_default_protocol, | 196 params.spdy_default_protocol, |
| 195 params.spdy_session_max_recv_window_size, | 197 params.spdy_session_max_recv_window_size, |
| 196 params.spdy_stream_max_recv_window_size, | 198 params.spdy_stream_max_recv_window_size, |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 case WEBSOCKET_SOCKET_POOL: | 392 case WEBSOCKET_SOCKET_POOL: |
| 391 return websocket_socket_pool_manager_.get(); | 393 return websocket_socket_pool_manager_.get(); |
| 392 default: | 394 default: |
| 393 NOTREACHED(); | 395 NOTREACHED(); |
| 394 break; | 396 break; |
| 395 } | 397 } |
| 396 return NULL; | 398 return NULL; |
| 397 } | 399 } |
| 398 | 400 |
| 399 } // namespace net | 401 } // namespace net |
| OLD | NEW |