| 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 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_H_ | 5 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| 6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_ | 6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 int quic_threshold_public_resets_post_handshake; | 169 int quic_threshold_public_resets_post_handshake; |
| 170 int quic_threshold_timeouts_streams_open; | 170 int quic_threshold_timeouts_streams_open; |
| 171 // Set of QUIC tags to send in the handshake's connection options. | 171 // Set of QUIC tags to send in the handshake's connection options. |
| 172 QuicTagVector quic_connection_options; | 172 QuicTagVector quic_connection_options; |
| 173 // If true, all QUIC sessions are closed when any local IP address changes. | 173 // If true, all QUIC sessions are closed when any local IP address changes. |
| 174 bool quic_close_sessions_on_ip_change; | 174 bool quic_close_sessions_on_ip_change; |
| 175 // Specifes QUIC idle connection state lifetime. | 175 // Specifes QUIC idle connection state lifetime. |
| 176 int quic_idle_connection_timeout_seconds; | 176 int quic_idle_connection_timeout_seconds; |
| 177 // If true, disable preconnections if QUIC can do 0RTT. | 177 // If true, disable preconnections if QUIC can do 0RTT. |
| 178 bool quic_disable_preconnect_if_0rtt; | 178 bool quic_disable_preconnect_if_0rtt; |
| 179 // If true, active QUIC sessions may be migrated onto new IPs when network |
| 180 // changes. |
| 181 bool quic_migrate_sessions_on_network_change; |
| 179 ProxyDelegate* proxy_delegate; | 182 ProxyDelegate* proxy_delegate; |
| 180 }; | 183 }; |
| 181 | 184 |
| 182 enum SocketPoolType { | 185 enum SocketPoolType { |
| 183 NORMAL_SOCKET_POOL, | 186 NORMAL_SOCKET_POOL, |
| 184 WEBSOCKET_SOCKET_POOL, | 187 WEBSOCKET_SOCKET_POOL, |
| 185 NUM_SOCKET_POOL_TYPES | 188 NUM_SOCKET_POOL_TYPES |
| 186 }; | 189 }; |
| 187 | 190 |
| 188 explicit HttpNetworkSession(const Params& params); | 191 explicit HttpNetworkSession(const Params& params); |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 | 291 |
| 289 NextProtoVector next_protos_; | 292 NextProtoVector next_protos_; |
| 290 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; | 293 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; |
| 291 | 294 |
| 292 Params params_; | 295 Params params_; |
| 293 }; | 296 }; |
| 294 | 297 |
| 295 } // namespace net | 298 } // namespace net |
| 296 | 299 |
| 297 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 300 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| OLD | NEW |