| Index: net/quic/quic_config.cc
|
| diff --git a/net/quic/quic_config.cc b/net/quic/quic_config.cc
|
| index 51e0a9af84f0583510ae3a1241e687c7868aeb8f..7dc93e5fc7c746265b0a7c90eb5b439ea2df0b39 100644
|
| --- a/net/quic/quic_config.cc
|
| +++ b/net/quic/quic_config.cc
|
| @@ -343,7 +343,8 @@ QuicConfig::QuicConfig()
|
| initial_round_trip_time_us_(kIRTT, PRESENCE_OPTIONAL),
|
| initial_stream_flow_control_window_bytes_(kSFCW, PRESENCE_OPTIONAL),
|
| initial_session_flow_control_window_bytes_(kCFCW, PRESENCE_OPTIONAL),
|
| - socket_receive_buffer_(kSRBF, PRESENCE_OPTIONAL) {
|
| + socket_receive_buffer_(kSRBF, PRESENCE_OPTIONAL),
|
| + multipath_enabled_(kMPTH, PRESENCE_OPTIONAL) {
|
| SetDefaults();
|
| }
|
|
|
| @@ -520,6 +521,15 @@ uint32_t QuicConfig::ReceivedSocketReceiveBuffer() const {
|
| return socket_receive_buffer_.GetReceivedValue();
|
| }
|
|
|
| +void QuicConfig::SetMultipathEnabled(bool multipath_enabled) {
|
| + uint32_t value = multipath_enabled ? 1 : 0;
|
| + multipath_enabled_.set(value, value);
|
| +}
|
| +
|
| +bool QuicConfig::MultipathEnabled() const {
|
| + return multipath_enabled_.GetUint32() > 0;
|
| +}
|
| +
|
| bool QuicConfig::negotiated() const {
|
| // TODO(ianswett): Add the negotiated parameters once and iterate over all
|
| // of them in negotiated, ToHandshakeMessage, ProcessClientHello, and
|
|
|