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

Unified Diff: chrome/browser/io_thread.h

Issue 938003003: Add a new enable_nonblocking_io field trial param for QUIC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comments Created 5 years, 10 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 9d0824546495739417940e0bfddb1dd9f686e959..c081e64df5eacfaaacb7cfc5059f4b314a9da5f8 100644
--- a/chrome/browser/io_thread.h
+++ b/chrome/browser/io_thread.h
@@ -190,6 +190,7 @@ class IOThread : public content::BrowserThreadDelegate {
Optional<float> quic_load_server_info_timeout_srtt_multiplier;
Optional<bool> quic_enable_truncated_connection_ids;
Optional<bool> quic_enable_connection_racing;
+ Optional<bool> quic_enable_non_blocking_io;
Optional<bool> quic_disable_disk_cache;
Optional<int> quic_socket_receive_buffer_size;
Optional<size_t> quic_max_packet_length;
@@ -385,6 +386,10 @@ class IOThread : public content::BrowserThreadDelegate {
static bool ShouldQuicEnableConnectionRacing(
const VariationParameters& quic_trial_params);
+ // Returns true if QUIC's should use non-blocking IO.
+ static bool ShouldQuicEnableNonBlockingIO(
+ const VariationParameters& quic_trial_params);
+
// Returns true if QUIC shouldn't load QUIC server information from the disk
// cache.
static bool ShouldQuicDisableDiskCache(
« 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