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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 alternate_protocol_probability_threshold(1), | 85 alternate_protocol_probability_threshold(1), |
86 enable_quic(false), | 86 enable_quic(false), |
87 enable_quic_for_proxies(false), | 87 enable_quic_for_proxies(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_srtt_multiplier(0.25f), | 91 quic_load_server_info_timeout_srtt_multiplier(0.25f), |
92 quic_enable_connection_racing(false), | 92 quic_enable_connection_racing(false), |
93 quic_enable_non_blocking_io(false), | 93 quic_enable_non_blocking_io(false), |
94 quic_disable_disk_cache(false), | 94 quic_disable_disk_cache(false), |
| 95 quic_max_number_of_lossy_connections(0), |
| 96 quic_packet_loss_threshold(1.0f), |
95 quic_socket_receive_buffer_size(kDefaultSocketReceiveBuffer), | 97 quic_socket_receive_buffer_size(kDefaultSocketReceiveBuffer), |
96 quic_clock(NULL), | 98 quic_clock(NULL), |
97 quic_random(NULL), | 99 quic_random(NULL), |
98 quic_max_packet_length(kDefaultMaxPacketSize), | 100 quic_max_packet_length(kDefaultMaxPacketSize), |
99 enable_user_alternate_protocol_ports(false), | 101 enable_user_alternate_protocol_ports(false), |
100 quic_crypto_client_stream_factory(NULL), | 102 quic_crypto_client_stream_factory(NULL), |
101 proxy_delegate(NULL) { | 103 proxy_delegate(NULL) { |
102 quic_supported_versions.push_back(QUIC_VERSION_24); | 104 quic_supported_versions.push_back(QUIC_VERSION_24); |
103 } | 105 } |
104 | 106 |
(...skipping 27 matching lines...) Expand all Loading... |
132 params.quic_max_packet_length, | 134 params.quic_max_packet_length, |
133 params.quic_user_agent_id, | 135 params.quic_user_agent_id, |
134 params.quic_supported_versions, | 136 params.quic_supported_versions, |
135 params.enable_quic_port_selection, | 137 params.enable_quic_port_selection, |
136 params.quic_always_require_handshake_confirmation, | 138 params.quic_always_require_handshake_confirmation, |
137 params.quic_disable_connection_pooling, | 139 params.quic_disable_connection_pooling, |
138 params.quic_load_server_info_timeout_srtt_multiplier, | 140 params.quic_load_server_info_timeout_srtt_multiplier, |
139 params.quic_enable_connection_racing, | 141 params.quic_enable_connection_racing, |
140 params.quic_enable_non_blocking_io, | 142 params.quic_enable_non_blocking_io, |
141 params.quic_disable_disk_cache, | 143 params.quic_disable_disk_cache, |
| 144 params.quic_max_number_of_lossy_connections, |
| 145 params.quic_packet_loss_threshold, |
142 params.quic_socket_receive_buffer_size, | 146 params.quic_socket_receive_buffer_size, |
143 params.quic_connection_options), | 147 params.quic_connection_options), |
144 spdy_session_pool_(params.host_resolver, | 148 spdy_session_pool_(params.host_resolver, |
145 params.ssl_config_service, | 149 params.ssl_config_service, |
146 params.http_server_properties, | 150 params.http_server_properties, |
147 params.transport_security_state, | 151 params.transport_security_state, |
148 params.force_spdy_single_domain, | 152 params.force_spdy_single_domain, |
149 params.enable_spdy_compression, | 153 params.enable_spdy_compression, |
150 params.enable_spdy_ping_based_connection_checking, | 154 params.enable_spdy_ping_based_connection_checking, |
151 params.spdy_default_protocol, | 155 params.spdy_default_protocol, |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 case WEBSOCKET_SOCKET_POOL: | 320 case WEBSOCKET_SOCKET_POOL: |
317 return websocket_socket_pool_manager_.get(); | 321 return websocket_socket_pool_manager_.get(); |
318 default: | 322 default: |
319 NOTREACHED(); | 323 NOTREACHED(); |
320 break; | 324 break; |
321 } | 325 } |
322 return NULL; | 326 return NULL; |
323 } | 327 } |
324 | 328 |
325 } // namespace net | 329 } // namespace net |
OLD | NEW |