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

Unified Diff: net/quic/quic_config.cc

Issue 2115033002: Adds QUIC_VERSION_36 which adds support to force HOL blocking between streams for measurement purpo… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@126085461
Patch Set: typo Created 4 years, 5 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 | « net/quic/quic_config.h ('k') | net/quic/quic_flags.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_config.cc
diff --git a/net/quic/quic_config.cc b/net/quic/quic_config.cc
index 25e567cb0a417d7ae7329b0d95d0bd33ca93ae7f..516c32d8c49457e71f68907f1d5ac2c414d08741 100644
--- a/net/quic/quic_config.cc
+++ b/net/quic/quic_config.cc
@@ -417,7 +417,8 @@ QuicConfig::QuicConfig()
socket_receive_buffer_(kSRBF, PRESENCE_OPTIONAL),
multipath_enabled_(kMPTH, PRESENCE_OPTIONAL),
connection_migration_disabled_(kNCMR, PRESENCE_OPTIONAL),
- alternate_server_address_(kASAD, PRESENCE_OPTIONAL) {
+ alternate_server_address_(kASAD, PRESENCE_OPTIONAL),
+ force_hol_blocking_(kFHOL, PRESENCE_OPTIONAL) {
SetDefaults();
}
@@ -643,6 +644,18 @@ const IPEndPoint& QuicConfig::ReceivedAlternateServerAddress() const {
return alternate_server_address_.GetReceivedValue();
}
+void QuicConfig::SetForceHolBlocking() {
+ force_hol_blocking_.SetSendValue(1);
+}
+
+bool QuicConfig::ForceHolBlocking(Perspective perspective) const {
+ if (perspective == Perspective::IS_SERVER) {
+ return force_hol_blocking_.HasReceivedValue();
+ } else {
+ return force_hol_blocking_.HasSendValue();
+ }
+}
+
bool QuicConfig::negotiated() const {
// TODO(ianswett): Add the negotiated parameters once and iterate over all
// of them in negotiated, ToHandshakeMessage, ProcessClientHello, and
« no previous file with comments | « net/quic/quic_config.h ('k') | net/quic/quic_flags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698