| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // List of hosts for which QUIC is explicitly whitelisted. | 184 // List of hosts for which QUIC is explicitly whitelisted. |
| 185 std::unordered_set<std::string> quic_host_whitelist; | 185 std::unordered_set<std::string> quic_host_whitelist; |
| 186 // If true, active QUIC sessions may be migrated onto new IPs when network | 186 // If true, active QUIC sessions may be migrated onto a new network when |
| 187 // changes. | 187 // the platform indicates that the default network is changing. |
| 188 bool quic_migrate_sessions_on_network_change; | 188 bool quic_migrate_sessions_on_network_change; |
| 189 // If true, active QUIC sessions experiencing poor connectivity may be |
| 190 // migrated onto a new network. |
| 191 bool quic_migrate_sessions_early; |
| 189 ProxyDelegate* proxy_delegate; | 192 ProxyDelegate* proxy_delegate; |
| 190 // Enable support for Token Binding. | 193 // Enable support for Token Binding. |
| 191 bool enable_token_binding; | 194 bool enable_token_binding; |
| 192 }; | 195 }; |
| 193 | 196 |
| 194 enum SocketPoolType { | 197 enum SocketPoolType { |
| 195 NORMAL_SOCKET_POOL, | 198 NORMAL_SOCKET_POOL, |
| 196 WEBSOCKET_SOCKET_POOL, | 199 WEBSOCKET_SOCKET_POOL, |
| 197 NUM_SOCKET_POOL_TYPES | 200 NUM_SOCKET_POOL_TYPES |
| 198 }; | 201 }; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 | 303 |
| 301 NextProtoVector next_protos_; | 304 NextProtoVector next_protos_; |
| 302 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; | 305 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; |
| 303 | 306 |
| 304 Params params_; | 307 Params params_; |
| 305 }; | 308 }; |
| 306 | 309 |
| 307 } // namespace net | 310 } // namespace net |
| 308 | 311 |
| 309 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 312 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| OLD | NEW |