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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 spdy_default_protocol(kProtoUnknown), | 83 spdy_default_protocol(kProtoUnknown), |
84 spdy_stream_initial_recv_window_size(0), | 84 spdy_stream_initial_recv_window_size(0), |
85 spdy_initial_max_concurrent_streams(0), | 85 spdy_initial_max_concurrent_streams(0), |
86 spdy_max_concurrent_streams_limit(0), | 86 spdy_max_concurrent_streams_limit(0), |
87 time_func(&base::TimeTicks::Now), | 87 time_func(&base::TimeTicks::Now), |
88 force_spdy_over_ssl(true), | 88 force_spdy_over_ssl(true), |
89 force_spdy_always(false), | 89 force_spdy_always(false), |
90 use_alternate_protocols(false), | 90 use_alternate_protocols(false), |
91 alternate_protocol_probability_threshold(1), | 91 alternate_protocol_probability_threshold(1), |
92 enable_quic(false), | 92 enable_quic(false), |
| 93 enable_quic_for_proxies(false), |
93 enable_quic_port_selection(true), | 94 enable_quic_port_selection(true), |
94 quic_always_require_handshake_confirmation(false), | 95 quic_always_require_handshake_confirmation(false), |
95 quic_disable_connection_pooling(false), | 96 quic_disable_connection_pooling(false), |
96 quic_load_server_info_timeout_ms(0), | 97 quic_load_server_info_timeout_ms(0), |
97 quic_load_server_info_timeout_srtt_multiplier(0.0f), | 98 quic_load_server_info_timeout_srtt_multiplier(0.0f), |
98 quic_enable_truncated_connection_ids(false), | 99 quic_enable_truncated_connection_ids(false), |
99 quic_enable_connection_racing(false), | 100 quic_enable_connection_racing(false), |
100 quic_clock(NULL), | 101 quic_clock(NULL), |
101 quic_random(NULL), | 102 quic_random(NULL), |
102 quic_max_packet_length(kDefaultMaxPacketSize), | 103 quic_max_packet_length(kDefaultMaxPacketSize), |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 } | 259 } |
259 | 260 |
260 base::Value* HttpNetworkSession::SpdySessionPoolInfoToValue() const { | 261 base::Value* HttpNetworkSession::SpdySessionPoolInfoToValue() const { |
261 return spdy_session_pool_.SpdySessionPoolInfoToValue(); | 262 return spdy_session_pool_.SpdySessionPoolInfoToValue(); |
262 } | 263 } |
263 | 264 |
264 base::Value* HttpNetworkSession::QuicInfoToValue() const { | 265 base::Value* HttpNetworkSession::QuicInfoToValue() const { |
265 base::DictionaryValue* dict = new base::DictionaryValue(); | 266 base::DictionaryValue* dict = new base::DictionaryValue(); |
266 dict->Set("sessions", quic_stream_factory_.QuicStreamFactoryInfoToValue()); | 267 dict->Set("sessions", quic_stream_factory_.QuicStreamFactoryInfoToValue()); |
267 dict->SetBoolean("quic_enabled", params_.enable_quic); | 268 dict->SetBoolean("quic_enabled", params_.enable_quic); |
| 269 dict->SetBoolean("quic_enabled_for_proxies", params_.enable_quic_for_proxies); |
268 dict->SetBoolean("enable_quic_port_selection", | 270 dict->SetBoolean("enable_quic_port_selection", |
269 params_.enable_quic_port_selection); | 271 params_.enable_quic_port_selection); |
270 base::ListValue* connection_options = new base::ListValue; | 272 base::ListValue* connection_options = new base::ListValue; |
271 for (QuicTagVector::const_iterator it = | 273 for (QuicTagVector::const_iterator it = |
272 params_.quic_connection_options.begin(); | 274 params_.quic_connection_options.begin(); |
273 it != params_.quic_connection_options.end(); ++it) { | 275 it != params_.quic_connection_options.end(); ++it) { |
274 connection_options->AppendString("'" + QuicUtils::TagToString(*it) + "'"); | 276 connection_options->AppendString("'" + QuicUtils::TagToString(*it) + "'"); |
275 } | 277 } |
276 dict->Set("connection_options", connection_options); | 278 dict->Set("connection_options", connection_options); |
277 dict->SetString("origin_to_force_quic_on", | 279 dict->SetString("origin_to_force_quic_on", |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 case WEBSOCKET_SOCKET_POOL: | 324 case WEBSOCKET_SOCKET_POOL: |
323 return websocket_socket_pool_manager_.get(); | 325 return websocket_socket_pool_manager_.get(); |
324 default: | 326 default: |
325 NOTREACHED(); | 327 NOTREACHED(); |
326 break; | 328 break; |
327 } | 329 } |
328 return NULL; | 330 return NULL; |
329 } | 331 } |
330 | 332 |
331 } // namespace net | 333 } // namespace net |
OLD | NEW |