| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 quic_clock(NULL), | 112 quic_clock(NULL), |
| 113 quic_random(NULL), | 113 quic_random(NULL), |
| 114 quic_max_packet_length(kDefaultMaxPacketSize), | 114 quic_max_packet_length(kDefaultMaxPacketSize), |
| 115 enable_user_alternate_protocol_ports(false), | 115 enable_user_alternate_protocol_ports(false), |
| 116 quic_crypto_client_stream_factory(NULL), | 116 quic_crypto_client_stream_factory(NULL), |
| 117 quic_max_recent_disabled_reasons(kQuicMaxRecentDisabledReasons), | 117 quic_max_recent_disabled_reasons(kQuicMaxRecentDisabledReasons), |
| 118 quic_threshold_public_resets_post_handshake(0), | 118 quic_threshold_public_resets_post_handshake(0), |
| 119 quic_threshold_timeouts_streams_open(0), | 119 quic_threshold_timeouts_streams_open(0), |
| 120 quic_close_sessions_on_ip_change(false), | 120 quic_close_sessions_on_ip_change(false), |
| 121 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds), | 121 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds), |
| 122 quic_disable_preconnect_if_0rtt(false), |
| 122 proxy_delegate(NULL) { | 123 proxy_delegate(NULL) { |
| 123 quic_supported_versions.push_back(QUIC_VERSION_25); | 124 quic_supported_versions.push_back(QUIC_VERSION_25); |
| 124 } | 125 } |
| 125 | 126 |
| 126 HttpNetworkSession::Params::~Params() {} | 127 HttpNetworkSession::Params::~Params() {} |
| 127 | 128 |
| 128 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. | 129 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. |
| 129 HttpNetworkSession::HttpNetworkSession(const Params& params) | 130 HttpNetworkSession::HttpNetworkSession(const Params& params) |
| 130 : net_log_(params.net_log), | 131 : net_log_(params.net_log), |
| 131 network_delegate_(params.network_delegate), | 132 network_delegate_(params.network_delegate), |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 case WEBSOCKET_SOCKET_POOL: | 356 case WEBSOCKET_SOCKET_POOL: |
| 356 return websocket_socket_pool_manager_.get(); | 357 return websocket_socket_pool_manager_.get(); |
| 357 default: | 358 default: |
| 358 NOTREACHED(); | 359 NOTREACHED(); |
| 359 break; | 360 break; |
| 360 } | 361 } |
| 361 return NULL; | 362 return NULL; |
| 362 } | 363 } |
| 363 | 364 |
| 364 } // namespace net | 365 } // namespace net |
| OLD | NEW |