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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 time_func(&base::TimeTicks::Now), | 84 time_func(&base::TimeTicks::Now), |
85 force_spdy_over_ssl(true), | 85 force_spdy_over_ssl(true), |
86 force_spdy_always(false), | 86 force_spdy_always(false), |
87 use_alternate_protocols(false), | 87 use_alternate_protocols(false), |
88 alternate_protocol_probability_threshold(1), | 88 alternate_protocol_probability_threshold(1), |
89 enable_websocket_over_spdy(false), | 89 enable_websocket_over_spdy(false), |
90 enable_quic(false), | 90 enable_quic(false), |
91 enable_quic_port_selection(true), | 91 enable_quic_port_selection(true), |
92 enable_quic_time_based_loss_detection(false), | 92 enable_quic_time_based_loss_detection(false), |
93 quic_always_require_handshake_confirmation(false), | 93 quic_always_require_handshake_confirmation(false), |
| 94 quic_disable_connection_pooling(false), |
94 quic_clock(NULL), | 95 quic_clock(NULL), |
95 quic_random(NULL), | 96 quic_random(NULL), |
96 quic_max_packet_length(kDefaultMaxPacketSize), | 97 quic_max_packet_length(kDefaultMaxPacketSize), |
97 enable_user_alternate_protocol_ports(false), | 98 enable_user_alternate_protocol_ports(false), |
98 quic_crypto_client_stream_factory(NULL) { | 99 quic_crypto_client_stream_factory(NULL) { |
99 quic_supported_versions.push_back(QUIC_VERSION_21); | 100 quic_supported_versions.push_back(QUIC_VERSION_21); |
100 } | 101 } |
101 | 102 |
102 HttpNetworkSession::Params::~Params() {} | 103 HttpNetworkSession::Params::~Params() {} |
103 | 104 |
(...skipping 21 matching lines...) Expand all Loading... |
125 params.transport_security_state, | 126 params.transport_security_state, |
126 params.quic_crypto_client_stream_factory, | 127 params.quic_crypto_client_stream_factory, |
127 params.quic_random ? params.quic_random : QuicRandom::GetInstance(), | 128 params.quic_random ? params.quic_random : QuicRandom::GetInstance(), |
128 params.quic_clock ? params.quic_clock : new QuicClock(), | 129 params.quic_clock ? params.quic_clock : new QuicClock(), |
129 params.quic_max_packet_length, | 130 params.quic_max_packet_length, |
130 params.quic_user_agent_id, | 131 params.quic_user_agent_id, |
131 params.quic_supported_versions, | 132 params.quic_supported_versions, |
132 params.enable_quic_port_selection, | 133 params.enable_quic_port_selection, |
133 params.enable_quic_time_based_loss_detection, | 134 params.enable_quic_time_based_loss_detection, |
134 params.quic_always_require_handshake_confirmation, | 135 params.quic_always_require_handshake_confirmation, |
| 136 params.quic_disable_connection_pooling, |
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 case WEBSOCKET_SOCKET_POOL: | 310 case WEBSOCKET_SOCKET_POOL: |
309 return websocket_socket_pool_manager_.get(); | 311 return websocket_socket_pool_manager_.get(); |
310 default: | 312 default: |
311 NOTREACHED(); | 313 NOTREACHED(); |
312 break; | 314 break; |
313 } | 315 } |
314 return NULL; | 316 return NULL; |
315 } | 317 } |
316 | 318 |
317 } // namespace net | 319 } // namespace net |
OLD | NEW |