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/atomic_sequence_num.h" | 9 #include "base/atomic_sequence_num.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 enable_user_alternate_protocol_ports(false), | 121 enable_user_alternate_protocol_ports(false), |
122 quic_crypto_client_stream_factory( | 122 quic_crypto_client_stream_factory( |
123 QuicCryptoClientStreamFactory::GetDefaultFactory()), | 123 QuicCryptoClientStreamFactory::GetDefaultFactory()), |
124 quic_max_recent_disabled_reasons(kQuicMaxRecentDisabledReasons), | 124 quic_max_recent_disabled_reasons(kQuicMaxRecentDisabledReasons), |
125 quic_threshold_public_resets_post_handshake(0), | 125 quic_threshold_public_resets_post_handshake(0), |
126 quic_threshold_timeouts_streams_open(0), | 126 quic_threshold_timeouts_streams_open(0), |
127 quic_close_sessions_on_ip_change(false), | 127 quic_close_sessions_on_ip_change(false), |
128 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds), | 128 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds), |
129 quic_disable_preconnect_if_0rtt(false), | 129 quic_disable_preconnect_if_0rtt(false), |
130 quic_migrate_sessions_on_network_change(false), | 130 quic_migrate_sessions_on_network_change(false), |
131 proxy_delegate(NULL) { | 131 proxy_delegate(NULL), |
| 132 enable_token_binding(false) { |
132 quic_supported_versions.push_back(QUIC_VERSION_25); | 133 quic_supported_versions.push_back(QUIC_VERSION_25); |
133 } | 134 } |
134 | 135 |
135 HttpNetworkSession::Params::~Params() {} | 136 HttpNetworkSession::Params::~Params() {} |
136 | 137 |
137 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. | 138 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. |
138 HttpNetworkSession::HttpNetworkSession(const Params& params) | 139 HttpNetworkSession::HttpNetworkSession(const Params& params) |
139 : net_log_(params.net_log), | 140 : net_log_(params.net_log), |
140 network_delegate_(params.network_delegate), | 141 network_delegate_(params.network_delegate), |
141 http_server_properties_(params.http_server_properties), | 142 http_server_properties_(params.http_server_properties), |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 case WEBSOCKET_SOCKET_POOL: | 385 case WEBSOCKET_SOCKET_POOL: |
385 return websocket_socket_pool_manager_.get(); | 386 return websocket_socket_pool_manager_.get(); |
386 default: | 387 default: |
387 NOTREACHED(); | 388 NOTREACHED(); |
388 break; | 389 break; |
389 } | 390 } |
390 return NULL; | 391 return NULL; |
391 } | 392 } |
392 | 393 |
393 } // namespace net | 394 } // namespace net |
OLD | NEW |