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

Unified Diff: net/quic/quic_config.h

Issue 1572033003: relnote: Allowing multipath support negotiation. Protected by --quic_enable_multipath, default valu… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0044_CL_111708360
Patch Set: rebase after removing 111628983 Created 4 years, 11 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/crypto/crypto_protocol.h ('k') | net/quic/quic_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_config.h
diff --git a/net/quic/quic_config.h b/net/quic/quic_config.h
index 3609f2d0481658f1ddbdc5dea1f50b2e56df2ffd..1fbb4b73ceb0f4ac0ff2295711b5963cca4d242b 100644
--- a/net/quic/quic_config.h
+++ b/net/quic/quic_config.h
@@ -75,6 +75,8 @@ class NET_EXPORT_PRIVATE QuicNegotiableValue : public QuicConfigValue {
};
class NET_EXPORT_PRIVATE QuicNegotiableUint32 : public QuicNegotiableValue {
+ // TODO(fayang): some negotiated values use uint32 as bool (e.g., silent
+ // close). Consider adding a QuicNegotiableBool type.
public:
// Default and max values default to 0.
QuicNegotiableUint32(QuicTag name, QuicConfigPresence presence);
@@ -327,6 +329,10 @@ class NET_EXPORT_PRIVATE QuicConfig {
uint32_t ReceivedSocketReceiveBuffer() const;
+ void SetMultipathEnabled(bool multipath_enabled);
+
+ bool MultipathEnabled() const;
+
bool negotiated() const;
// ToHandshakeMessage serialises the settings in this object as a series of
@@ -373,6 +379,9 @@ class NET_EXPORT_PRIVATE QuicConfig {
// Socket receive buffer in bytes.
QuicFixedUint32 socket_receive_buffer_;
+
+ // Whether to support multipath for this connection.
+ QuicNegotiableUint32 multipath_enabled_;
};
} // namespace net
« no previous file with comments | « net/quic/crypto/crypto_protocol.h ('k') | net/quic/quic_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698