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