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