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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 // Prefer AES-GCM to ChaCha20 even if no hardware support is present. | 136 // Prefer AES-GCM to ChaCha20 even if no hardware support is present. |
137 bool quic_prefer_aes; | 137 bool quic_prefer_aes; |
138 // Specifies the maximum number of connections with high packet loss in | 138 // Specifies the maximum number of connections with high packet loss in |
139 // a row after which QUIC will be disabled. | 139 // a row after which QUIC will be disabled. |
140 int quic_max_number_of_lossy_connections; | 140 int quic_max_number_of_lossy_connections; |
141 // Specifies packet loss rate in fraction after which a connection is | 141 // Specifies packet loss rate in fraction after which a connection is |
142 // closed and is considered as a lossy connection. | 142 // closed and is considered as a lossy connection. |
143 float quic_packet_loss_threshold; | 143 float quic_packet_loss_threshold; |
144 // Size in bytes of the QUIC DUP socket receive buffer. | 144 // Size in bytes of the QUIC DUP socket receive buffer. |
145 int quic_socket_receive_buffer_size; | 145 int quic_socket_receive_buffer_size; |
| 146 // Delay starting a TCP connection when QUIC believes it can speak |
| 147 // 0-RTT to a server. |
| 148 bool quic_delay_tcp_race; |
146 // Maximum number of server configs that are to be stored in | 149 // Maximum number of server configs that are to be stored in |
147 // HttpServerProperties, instead of the disk cache. | 150 // HttpServerProperties, instead of the disk cache. |
148 size_t quic_max_server_configs_stored_in_properties; | 151 size_t quic_max_server_configs_stored_in_properties; |
149 // If not empty, QUIC will be used for all connections to the set of | 152 // If not empty, QUIC will be used for all connections to the set of |
150 // origins in |origins_to_force_quic_on|. | 153 // origins in |origins_to_force_quic_on|. |
151 std::set<HostPortPair> origins_to_force_quic_on; | 154 std::set<HostPortPair> origins_to_force_quic_on; |
152 // Source of time for QUIC connections. Will be owned by QuicStreamFactory. | 155 // Source of time for QUIC connections. Will be owned by QuicStreamFactory. |
153 QuicClock* quic_clock; | 156 QuicClock* quic_clock; |
154 // Source of entropy for QUIC connections. | 157 // Source of entropy for QUIC connections. |
155 QuicRandom* quic_random; | 158 QuicRandom* quic_random; |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 | 299 |
297 NextProtoVector next_protos_; | 300 NextProtoVector next_protos_; |
298 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; | 301 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; |
299 | 302 |
300 Params params_; | 303 Params params_; |
301 }; | 304 }; |
302 | 305 |
303 } // namespace net | 306 } // namespace net |
304 | 307 |
305 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 308 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
OLD | NEW |