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