| Index: chrome/browser/io_thread.h
|
| diff --git a/chrome/browser/io_thread.h b/chrome/browser/io_thread.h
|
| index ab2926e8f4f113b0c01ebb263aec8b916abc337b..d5b948c61cb33fad32fbae74391769bb5c6c4d8c 100644
|
| --- a/chrome/browser/io_thread.h
|
| +++ b/chrome/browser/io_thread.h
|
| @@ -189,6 +189,8 @@ class IOThread : public content::BrowserThreadDelegate {
|
| Optional<bool> quic_enable_connection_racing;
|
| Optional<bool> quic_enable_non_blocking_io;
|
| Optional<bool> quic_disable_disk_cache;
|
| + Optional<int> quic_max_number_of_lossy_connections;
|
| + Optional<float> quic_packet_loss_threshold;
|
| Optional<int> quic_socket_receive_buffer_size;
|
| Optional<size_t> quic_max_packet_length;
|
| net::QuicTagVector quic_connection_options;
|
| @@ -372,6 +374,18 @@ class IOThread : public content::BrowserThreadDelegate {
|
| static bool ShouldQuicDisableDiskCache(
|
| const VariationParameters& quic_trial_params);
|
|
|
| + // Returns the maximum number of QUIC connections with high packet loss in a
|
| + // row after which QUIC should be disabled. Returns 0 if the default value
|
| + // should be used.
|
| + static int GetQuicMaxNumberOfLossyConnections(
|
| + const VariationParameters& quic_trial_params);
|
| +
|
| + // Returns the packet loss rate in fraction after which a QUIC connection is
|
| + // closed and is considered as a lossy connection. Returns 0 if the default
|
| + // value should be used.
|
| + static float GetQuicPacketLossThreshold(
|
| + const VariationParameters& quic_trial_params);
|
| +
|
| // Returns the size of the QUIC receive buffer to use, or 0 if
|
| // the default should be used.
|
| static int GetQuicSocketReceiveBufferSize(
|
|
|