| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 enable_quic_https(false), | 84 enable_quic_https(false), |
| 85 enable_quic_port_selection(true), | 85 enable_quic_port_selection(true), |
| 86 enable_quic_pacing(false), | 86 enable_quic_pacing(false), |
| 87 enable_quic_time_based_loss_detection(false), | 87 enable_quic_time_based_loss_detection(false), |
| 88 enable_quic_persist_server_info(false), | 88 enable_quic_persist_server_info(false), |
| 89 quic_clock(NULL), | 89 quic_clock(NULL), |
| 90 quic_random(NULL), | 90 quic_random(NULL), |
| 91 quic_max_packet_length(kDefaultMaxPacketSize), | 91 quic_max_packet_length(kDefaultMaxPacketSize), |
| 92 enable_user_alternate_protocol_ports(false), | 92 enable_user_alternate_protocol_ports(false), |
| 93 quic_crypto_client_stream_factory(NULL) { | 93 quic_crypto_client_stream_factory(NULL) { |
| 94 quic_supported_versions.push_back(QUIC_VERSION_17); | 94 quic_supported_versions.push_back(QUIC_VERSION_16); |
| 95 } | 95 } |
| 96 | 96 |
| 97 HttpNetworkSession::Params::~Params() {} | 97 HttpNetworkSession::Params::~Params() {} |
| 98 | 98 |
| 99 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. | 99 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. |
| 100 HttpNetworkSession::HttpNetworkSession(const Params& params) | 100 HttpNetworkSession::HttpNetworkSession(const Params& params) |
| 101 : net_log_(params.net_log), | 101 : net_log_(params.net_log), |
| 102 network_delegate_(params.network_delegate), | 102 network_delegate_(params.network_delegate), |
| 103 http_server_properties_(params.http_server_properties), | 103 http_server_properties_(params.http_server_properties), |
| 104 cert_verifier_(params.cert_verifier), | 104 cert_verifier_(params.cert_verifier), |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 case WEBSOCKET_SOCKET_POOL: | 245 case WEBSOCKET_SOCKET_POOL: |
| 246 return websocket_socket_pool_manager_.get(); | 246 return websocket_socket_pool_manager_.get(); |
| 247 default: | 247 default: |
| 248 NOTREACHED(); | 248 NOTREACHED(); |
| 249 break; | 249 break; |
| 250 } | 250 } |
| 251 return NULL; | 251 return NULL; |
| 252 } | 252 } |
| 253 | 253 |
| 254 } // namespace net | 254 } // namespace net |
| OLD | NEW |