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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 // Specifes QUIC idle connection state lifetime. | 181 // Specifes QUIC idle connection state lifetime. |
182 int quic_idle_connection_timeout_seconds; | 182 int quic_idle_connection_timeout_seconds; |
183 // If true, disable preconnections if QUIC can do 0RTT. | 183 // If true, disable preconnections if QUIC can do 0RTT. |
184 bool quic_disable_preconnect_if_0rtt; | 184 bool quic_disable_preconnect_if_0rtt; |
185 // List of hosts for which QUIC is explicitly whitelisted. | 185 // List of hosts for which QUIC is explicitly whitelisted. |
186 std::unordered_set<std::string> quic_host_whitelist; | 186 std::unordered_set<std::string> quic_host_whitelist; |
187 // If true, active QUIC sessions may be migrated onto new IPs when network | 187 // If true, active QUIC sessions may be migrated onto new IPs when network |
188 // changes. | 188 // changes. |
189 bool quic_migrate_sessions_on_network_change; | 189 bool quic_migrate_sessions_on_network_change; |
190 ProxyDelegate* proxy_delegate; | 190 ProxyDelegate* proxy_delegate; |
| 191 // Enable support for Token Binding. |
| 192 bool enable_token_binding; |
191 }; | 193 }; |
192 | 194 |
193 enum SocketPoolType { | 195 enum SocketPoolType { |
194 NORMAL_SOCKET_POOL, | 196 NORMAL_SOCKET_POOL, |
195 WEBSOCKET_SOCKET_POOL, | 197 WEBSOCKET_SOCKET_POOL, |
196 NUM_SOCKET_POOL_TYPES | 198 NUM_SOCKET_POOL_TYPES |
197 }; | 199 }; |
198 | 200 |
199 explicit HttpNetworkSession(const Params& params); | 201 explicit HttpNetworkSession(const Params& params); |
200 ~HttpNetworkSession(); | 202 ~HttpNetworkSession(); |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 | 301 |
300 NextProtoVector next_protos_; | 302 NextProtoVector next_protos_; |
301 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; | 303 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; |
302 | 304 |
303 Params params_; | 305 Params params_; |
304 }; | 306 }; |
305 | 307 |
306 } // namespace net | 308 } // namespace net |
307 | 309 |
308 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 310 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
OLD | NEW |