| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 enable_quic(false), | 86 enable_quic(false), |
| 87 enable_quic_port_selection(true), | 87 enable_quic_port_selection(true), |
| 88 enable_quic_pacing(false), | 88 enable_quic_pacing(false), |
| 89 enable_quic_time_based_loss_detection(false), | 89 enable_quic_time_based_loss_detection(false), |
| 90 enable_quic_persist_server_info(false), | 90 enable_quic_persist_server_info(false), |
| 91 quic_clock(NULL), | 91 quic_clock(NULL), |
| 92 quic_random(NULL), | 92 quic_random(NULL), |
| 93 quic_max_packet_length(kDefaultMaxPacketSize), | 93 quic_max_packet_length(kDefaultMaxPacketSize), |
| 94 enable_user_alternate_protocol_ports(false), | 94 enable_user_alternate_protocol_ports(false), |
| 95 quic_crypto_client_stream_factory(NULL) { | 95 quic_crypto_client_stream_factory(NULL) { |
| 96 quic_supported_versions.push_back(QUIC_VERSION_19); | 96 quic_supported_versions.push_back(QUIC_VERSION_21); |
| 97 } | 97 } |
| 98 | 98 |
| 99 HttpNetworkSession::Params::~Params() {} | 99 HttpNetworkSession::Params::~Params() {} |
| 100 | 100 |
| 101 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. | 101 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. |
| 102 HttpNetworkSession::HttpNetworkSession(const Params& params) | 102 HttpNetworkSession::HttpNetworkSession(const Params& params) |
| 103 : net_log_(params.net_log), | 103 : net_log_(params.net_log), |
| 104 network_delegate_(params.network_delegate), | 104 network_delegate_(params.network_delegate), |
| 105 http_server_properties_(params.http_server_properties), | 105 http_server_properties_(params.http_server_properties), |
| 106 cert_verifier_(params.cert_verifier), | 106 cert_verifier_(params.cert_verifier), |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 case WEBSOCKET_SOCKET_POOL: | 302 case WEBSOCKET_SOCKET_POOL: |
| 303 return websocket_socket_pool_manager_.get(); | 303 return websocket_socket_pool_manager_.get(); |
| 304 default: | 304 default: |
| 305 NOTREACHED(); | 305 NOTREACHED(); |
| 306 break; | 306 break; |
| 307 } | 307 } |
| 308 return NULL; | 308 return NULL; |
| 309 } | 309 } |
| 310 | 310 |
| 311 } // namespace net | 311 } // namespace net |
| OLD | NEW |