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 |