Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Unified Diff: chrome/browser/io_thread.h

Issue 1041953003: QUIC - Added the following finch trial parameters to disable QUIC if (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed typos Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698