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/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/debug/stack_trace.h" | 10 #include "base/debug/stack_trace.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 time_func(&base::TimeTicks::Now), | 82 time_func(&base::TimeTicks::Now), |
83 force_spdy_over_ssl(true), | 83 force_spdy_over_ssl(true), |
84 force_spdy_always(false), | 84 force_spdy_always(false), |
85 use_alternate_protocols(false), | 85 use_alternate_protocols(false), |
86 alternate_protocol_probability_threshold(1), | 86 alternate_protocol_probability_threshold(1), |
87 enable_quic(false), | 87 enable_quic(false), |
88 enable_quic_port_selection(true), | 88 enable_quic_port_selection(true), |
89 quic_always_require_handshake_confirmation(false), | 89 quic_always_require_handshake_confirmation(false), |
90 quic_disable_connection_pooling(false), | 90 quic_disable_connection_pooling(false), |
91 quic_load_server_info_timeout_ms(0), | 91 quic_load_server_info_timeout_ms(0), |
| 92 quic_disable_loading_server_info_for_new_servers(false), |
92 quic_clock(NULL), | 93 quic_clock(NULL), |
93 quic_random(NULL), | 94 quic_random(NULL), |
94 quic_max_packet_length(kDefaultMaxPacketSize), | 95 quic_max_packet_length(kDefaultMaxPacketSize), |
95 enable_user_alternate_protocol_ports(false), | 96 enable_user_alternate_protocol_ports(false), |
96 quic_crypto_client_stream_factory(NULL), | 97 quic_crypto_client_stream_factory(NULL), |
97 proxy_delegate(NULL) { | 98 proxy_delegate(NULL) { |
98 quic_supported_versions.push_back(QUIC_VERSION_23); | 99 quic_supported_versions.push_back(QUIC_VERSION_23); |
99 } | 100 } |
100 | 101 |
101 HttpNetworkSession::Params::~Params() {} | 102 HttpNetworkSession::Params::~Params() {} |
(...skipping 23 matching lines...) Expand all Loading... |
125 params.quic_crypto_client_stream_factory, | 126 params.quic_crypto_client_stream_factory, |
126 params.quic_random ? params.quic_random : QuicRandom::GetInstance(), | 127 params.quic_random ? params.quic_random : QuicRandom::GetInstance(), |
127 params.quic_clock ? params.quic_clock : new QuicClock(), | 128 params.quic_clock ? params.quic_clock : new QuicClock(), |
128 params.quic_max_packet_length, | 129 params.quic_max_packet_length, |
129 params.quic_user_agent_id, | 130 params.quic_user_agent_id, |
130 params.quic_supported_versions, | 131 params.quic_supported_versions, |
131 params.enable_quic_port_selection, | 132 params.enable_quic_port_selection, |
132 params.quic_always_require_handshake_confirmation, | 133 params.quic_always_require_handshake_confirmation, |
133 params.quic_disable_connection_pooling, | 134 params.quic_disable_connection_pooling, |
134 params.quic_load_server_info_timeout_ms, | 135 params.quic_load_server_info_timeout_ms, |
| 136 params.quic_disable_loading_server_info_for_new_servers, |
135 params.quic_connection_options), | 137 params.quic_connection_options), |
136 spdy_session_pool_(params.host_resolver, | 138 spdy_session_pool_(params.host_resolver, |
137 params.ssl_config_service, | 139 params.ssl_config_service, |
138 params.http_server_properties, | 140 params.http_server_properties, |
139 params.transport_security_state, | 141 params.transport_security_state, |
140 params.force_spdy_single_domain, | 142 params.force_spdy_single_domain, |
141 params.enable_spdy_compression, | 143 params.enable_spdy_compression, |
142 params.enable_spdy_ping_based_connection_checking, | 144 params.enable_spdy_ping_based_connection_checking, |
143 params.spdy_default_protocol, | 145 params.spdy_default_protocol, |
144 params.spdy_stream_initial_recv_window_size, | 146 params.spdy_stream_initial_recv_window_size, |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 case WEBSOCKET_SOCKET_POOL: | 309 case WEBSOCKET_SOCKET_POOL: |
308 return websocket_socket_pool_manager_.get(); | 310 return websocket_socket_pool_manager_.get(); |
309 default: | 311 default: |
310 NOTREACHED(); | 312 NOTREACHED(); |
311 break; | 313 break; |
312 } | 314 } |
313 return NULL; | 315 return NULL; |
314 } | 316 } |
315 | 317 |
316 } // namespace net | 318 } // namespace net |
OLD | NEW |