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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 bool enable_http2_alternative_service; | 115 bool enable_http2_alternative_service; |
116 | 116 |
117 // Enables QUIC support. | 117 // Enables QUIC support. |
118 bool enable_quic; | 118 bool enable_quic; |
119 // Marks a QUIC server broken when a connection blackholes after the | 119 // Marks a QUIC server broken when a connection blackholes after the |
120 // handshake is confirmed. | 120 // handshake is confirmed. |
121 bool mark_quic_broken_when_network_blackholes; | 121 bool mark_quic_broken_when_network_blackholes; |
122 // Retry requests which fail with QUIC_PROTOCOL_ERROR, and mark QUIC | 122 // Retry requests which fail with QUIC_PROTOCOL_ERROR, and mark QUIC |
123 // broken if the retry succeeds. | 123 // broken if the retry succeeds. |
124 bool retry_without_alt_svc_on_quic_errors; | 124 bool retry_without_alt_svc_on_quic_errors; |
| 125 // If not zero, the task to load QUIC server configs from the disk cache |
| 126 // will timeout after this value multiplied by the smoothed RTT for the |
| 127 // server. |
| 128 float quic_load_server_info_timeout_srtt_multiplier; |
| 129 // Causes QUIC to race reading the server config from disk with |
| 130 // sending an inchoate CHLO. |
| 131 bool quic_enable_connection_racing; |
125 // Use non-blocking IO for UDP sockets. | 132 // Use non-blocking IO for UDP sockets. |
126 bool quic_enable_non_blocking_io; | 133 bool quic_enable_non_blocking_io; |
| 134 // Disables using the disk cache to store QUIC server configs. |
| 135 bool quic_disable_disk_cache; |
127 // Maximum number of server configs that are to be stored in | 136 // Maximum number of server configs that are to be stored in |
128 // HttpServerProperties, instead of the disk cache. | 137 // HttpServerProperties, instead of the disk cache. |
129 size_t quic_max_server_configs_stored_in_properties; | 138 size_t quic_max_server_configs_stored_in_properties; |
130 // If not empty, QUIC will be used for all connections to the set of | 139 // If not empty, QUIC will be used for all connections to the set of |
131 // origins in |origins_to_force_quic_on|. | 140 // origins in |origins_to_force_quic_on|. |
132 std::set<HostPortPair> origins_to_force_quic_on; | 141 std::set<HostPortPair> origins_to_force_quic_on; |
133 // Source of time for QUIC connections. | 142 // Source of time for QUIC connections. |
134 QuicClock* quic_clock; | 143 QuicClock* quic_clock; |
135 // Source of entropy for QUIC connections. | 144 // Source of entropy for QUIC connections. |
136 QuicRandom* quic_random; | 145 QuicRandom* quic_random; |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 NextProtoVector next_protos_; | 332 NextProtoVector next_protos_; |
324 | 333 |
325 Params params_; | 334 Params params_; |
326 | 335 |
327 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 336 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
328 }; | 337 }; |
329 | 338 |
330 } // namespace net | 339 } // namespace net |
331 | 340 |
332 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 341 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
OLD | NEW |