| 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; | |
| 132 // Use non-blocking IO for UDP sockets. | 125 // Use non-blocking IO for UDP sockets. |
| 133 bool quic_enable_non_blocking_io; | 126 bool quic_enable_non_blocking_io; |
| 134 // Disables using the disk cache to store QUIC server configs. | |
| 135 bool quic_disable_disk_cache; | |
| 136 // Maximum number of server configs that are to be stored in | 127 // Maximum number of server configs that are to be stored in |
| 137 // HttpServerProperties, instead of the disk cache. | 128 // HttpServerProperties, instead of the disk cache. |
| 138 size_t quic_max_server_configs_stored_in_properties; | 129 size_t quic_max_server_configs_stored_in_properties; |
| 139 // If not empty, QUIC will be used for all connections to the set of | 130 // If not empty, QUIC will be used for all connections to the set of |
| 140 // origins in |origins_to_force_quic_on|. | 131 // origins in |origins_to_force_quic_on|. |
| 141 std::set<HostPortPair> origins_to_force_quic_on; | 132 std::set<HostPortPair> origins_to_force_quic_on; |
| 142 // Source of time for QUIC connections. | 133 // Source of time for QUIC connections. |
| 143 QuicClock* quic_clock; | 134 QuicClock* quic_clock; |
| 144 // Source of entropy for QUIC connections. | 135 // Source of entropy for QUIC connections. |
| 145 QuicRandom* quic_random; | 136 QuicRandom* quic_random; |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 NextProtoVector next_protos_; | 323 NextProtoVector next_protos_; |
| 333 | 324 |
| 334 Params params_; | 325 Params params_; |
| 335 | 326 |
| 336 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 327 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
| 337 }; | 328 }; |
| 338 | 329 |
| 339 } // namespace net | 330 } // namespace net |
| 340 | 331 |
| 341 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 332 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| OLD | NEW |