| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_clock(NULL), | 93 quic_clock(NULL), |
| 94 quic_random(NULL), | 94 quic_random(NULL), |
| 95 quic_max_packet_length(kDefaultMaxPacketSize), | 95 quic_max_packet_length(kDefaultMaxPacketSize), |
| 96 enable_user_alternate_protocol_ports(false), | 96 enable_user_alternate_protocol_ports(false), |
| 97 quic_crypto_client_stream_factory(NULL) { | 97 quic_crypto_client_stream_factory(NULL) { |
| 98 quic_supported_versions.push_back(QUIC_VERSION_21); | 98 quic_supported_versions.push_back(QUIC_VERSION_19); |
| 99 } | 99 } |
| 100 | 100 |
| 101 HttpNetworkSession::Params::~Params() {} | 101 HttpNetworkSession::Params::~Params() {} |
| 102 | 102 |
| 103 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. | 103 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. |
| 104 HttpNetworkSession::HttpNetworkSession(const Params& params) | 104 HttpNetworkSession::HttpNetworkSession(const Params& params) |
| 105 : net_log_(params.net_log), | 105 : net_log_(params.net_log), |
| 106 network_delegate_(params.network_delegate), | 106 network_delegate_(params.network_delegate), |
| 107 http_server_properties_(params.http_server_properties), | 107 http_server_properties_(params.http_server_properties), |
| 108 cert_verifier_(params.cert_verifier), | 108 cert_verifier_(params.cert_verifier), |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 case WEBSOCKET_SOCKET_POOL: | 308 case WEBSOCKET_SOCKET_POOL: |
| 309 return websocket_socket_pool_manager_.get(); | 309 return websocket_socket_pool_manager_.get(); |
| 310 default: | 310 default: |
| 311 NOTREACHED(); | 311 NOTREACHED(); |
| 312 break; | 312 break; |
| 313 } | 313 } |
| 314 return NULL; | 314 return NULL; |
| 315 } | 315 } |
| 316 | 316 |
| 317 } // namespace net | 317 } // namespace net |
| OLD | NEW |