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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 enable_quic(false), | 91 enable_quic(false), |
92 disable_insecure_quic(false), | 92 disable_insecure_quic(false), |
93 enable_quic_for_proxies(false), | 93 enable_quic_for_proxies(false), |
94 enable_quic_port_selection(true), | 94 enable_quic_port_selection(true), |
95 quic_always_require_handshake_confirmation(false), | 95 quic_always_require_handshake_confirmation(false), |
96 quic_disable_connection_pooling(false), | 96 quic_disable_connection_pooling(false), |
97 quic_load_server_info_timeout_srtt_multiplier(0.25f), | 97 quic_load_server_info_timeout_srtt_multiplier(0.25f), |
98 quic_enable_connection_racing(false), | 98 quic_enable_connection_racing(false), |
99 quic_enable_non_blocking_io(false), | 99 quic_enable_non_blocking_io(false), |
100 quic_disable_disk_cache(false), | 100 quic_disable_disk_cache(false), |
| 101 quic_prefer_aes(false), |
101 quic_max_number_of_lossy_connections(0), | 102 quic_max_number_of_lossy_connections(0), |
102 quic_packet_loss_threshold(1.0f), | 103 quic_packet_loss_threshold(1.0f), |
103 quic_socket_receive_buffer_size(kQuicSocketReceiveBufferSize), | 104 quic_socket_receive_buffer_size(kQuicSocketReceiveBufferSize), |
104 quic_clock(NULL), | 105 quic_clock(NULL), |
105 quic_random(NULL), | 106 quic_random(NULL), |
106 quic_max_packet_length(kDefaultMaxPacketSize), | 107 quic_max_packet_length(kDefaultMaxPacketSize), |
107 enable_user_alternate_protocol_ports(false), | 108 enable_user_alternate_protocol_ports(false), |
108 quic_crypto_client_stream_factory(NULL), | 109 quic_crypto_client_stream_factory(NULL), |
109 proxy_delegate(NULL) { | 110 proxy_delegate(NULL) { |
110 quic_supported_versions.push_back(QUIC_VERSION_25); | 111 quic_supported_versions.push_back(QUIC_VERSION_25); |
(...skipping 29 matching lines...) Expand all Loading... |
140 params.quic_max_packet_length, | 141 params.quic_max_packet_length, |
141 params.quic_user_agent_id, | 142 params.quic_user_agent_id, |
142 params.quic_supported_versions, | 143 params.quic_supported_versions, |
143 params.enable_quic_port_selection, | 144 params.enable_quic_port_selection, |
144 params.quic_always_require_handshake_confirmation, | 145 params.quic_always_require_handshake_confirmation, |
145 params.quic_disable_connection_pooling, | 146 params.quic_disable_connection_pooling, |
146 params.quic_load_server_info_timeout_srtt_multiplier, | 147 params.quic_load_server_info_timeout_srtt_multiplier, |
147 params.quic_enable_connection_racing, | 148 params.quic_enable_connection_racing, |
148 params.quic_enable_non_blocking_io, | 149 params.quic_enable_non_blocking_io, |
149 params.quic_disable_disk_cache, | 150 params.quic_disable_disk_cache, |
| 151 params.quic_prefer_aes, |
150 params.quic_max_number_of_lossy_connections, | 152 params.quic_max_number_of_lossy_connections, |
151 params.quic_packet_loss_threshold, | 153 params.quic_packet_loss_threshold, |
152 params.quic_socket_receive_buffer_size, | 154 params.quic_socket_receive_buffer_size, |
153 params.quic_connection_options), | 155 params.quic_connection_options), |
154 spdy_session_pool_(params.host_resolver, | 156 spdy_session_pool_(params.host_resolver, |
155 params.ssl_config_service, | 157 params.ssl_config_service, |
156 params.http_server_properties, | 158 params.http_server_properties, |
157 params.transport_security_state, | 159 params.transport_security_state, |
158 params.enable_spdy_compression, | 160 params.enable_spdy_compression, |
159 params.enable_spdy_ping_based_connection_checking, | 161 params.enable_spdy_ping_based_connection_checking, |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 case WEBSOCKET_SOCKET_POOL: | 323 case WEBSOCKET_SOCKET_POOL: |
322 return websocket_socket_pool_manager_.get(); | 324 return websocket_socket_pool_manager_.get(); |
323 default: | 325 default: |
324 NOTREACHED(); | 326 NOTREACHED(); |
325 break; | 327 break; |
326 } | 328 } |
327 return NULL; | 329 return NULL; |
328 } | 330 } |
329 | 331 |
330 } // namespace net | 332 } // namespace net |
OLD | NEW |