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; | |
149 // Maximum number of server configs that are to be stored in | 146 // Maximum number of server configs that are to be stored in |
150 // HttpServerProperties, instead of the disk cache. | 147 // HttpServerProperties, instead of the disk cache. |
151 size_t quic_max_server_configs_stored_in_properties; | 148 size_t quic_max_server_configs_stored_in_properties; |
152 // If not empty, QUIC will be used for all connections to the set of | 149 // If not empty, QUIC will be used for all connections to the set of |
153 // origins in |origins_to_force_quic_on|. | 150 // origins in |origins_to_force_quic_on|. |
154 std::set<HostPortPair> origins_to_force_quic_on; | 151 std::set<HostPortPair> origins_to_force_quic_on; |
155 // Source of time for QUIC connections. Will be owned by QuicStreamFactory. | 152 // Source of time for QUIC connections. Will be owned by QuicStreamFactory. |
156 QuicClock* quic_clock; | 153 QuicClock* quic_clock; |
157 // Source of entropy for QUIC connections. | 154 // Source of entropy for QUIC connections. |
158 QuicRandom* quic_random; | 155 QuicRandom* quic_random; |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 | 296 |
300 NextProtoVector next_protos_; | 297 NextProtoVector next_protos_; |
301 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; | 298 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; |
302 | 299 |
303 Params params_; | 300 Params params_; |
304 }; | 301 }; |
305 | 302 |
306 } // namespace net | 303 } // namespace net |
307 | 304 |
308 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 305 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
OLD | NEW |