summaryrefslogtreecommitdiffstats
path: root/chrome/browser/io_thread.h
diff options
context:
space:
mode:
authorjri <jri@chromium.org>2014-09-02 15:25:36 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-02 22:42:08 +0000
commit2b966f217ba9f38cb4e625bdabbae0044dd28523 (patch)
tree782871421f9fe761609acea5a957a29b4a2ea12d /chrome/browser/io_thread.h
parenta5f8ead45f469cb046403b250272b855de9fbba3 (diff)
downloadchromium_src-2b966f217ba9f38cb4e625bdabbae0044dd28523.zip
chromium_src-2b966f217ba9f38cb4e625bdabbae0044dd28523.tar.gz
chromium_src-2b966f217ba9f38cb4e625bdabbae0044dd28523.tar.bz2
Adds plumbing for always requiring handshake confirmation in QUIC, for use in Finch field trials.
BUG= Review URL: https://codereview.chromium.org/524463004 Cr-Commit-Position: refs/heads/master@{#293010}
Diffstat (limited to 'chrome/browser/io_thread.h')
-rw-r--r--chrome/browser/io_thread.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/io_thread.h b/chrome/browser/io_thread.h
index 8559217..a989118 100644
--- a/chrome/browser/io_thread.h
+++ b/chrome/browser/io_thread.h
@@ -187,6 +187,7 @@ class IOThread : public content::BrowserThreadDelegate {
Optional<bool> enable_quic;
Optional<bool> enable_quic_time_based_loss_detection;
Optional<bool> enable_quic_port_selection;
+ Optional<bool> quic_always_require_handshake_confirmation;
Optional<size_t> quic_max_packet_length;
net::QuicTagVector quic_connection_options;
Optional<std::string> quic_user_agent_id;
@@ -352,6 +353,11 @@ class IOThread : public content::BrowserThreadDelegate {
base::StringPiece quic_trial_group,
const VariationParameters& quic_trial_params);
+ // Returns true if QUIC should always require handshake confirmation during
+ // the QUIC handshake.
+ static bool ShouldQuicAlwaysRequireHandshakeConfirmation(
+ const VariationParameters& quic_trial_params);
+
// Returns the maximum length for QUIC packets, based on any flags in
// |command_line| or the field trial. Returns 0 if there is an error
// parsing any of the options, or if the default value should be used.