Chromium Code Reviews| Index: net/quic/core/congestion_control/cubic.h |
| diff --git a/net/quic/core/congestion_control/cubic.h b/net/quic/core/congestion_control/cubic.h |
| index 30657e57c9d6b58d4e9943d6f733dd9399adbe2c..dba6493c6351b171dce93ba92e3554fe9e1622e4 100644 |
| --- a/net/quic/core/congestion_control/cubic.h |
| +++ b/net/quic/core/congestion_control/cubic.h |
| @@ -34,9 +34,9 @@ class NET_EXPORT_PRIVATE Cubic { |
| QuicPacketCount CongestionWindowAfterPacketLoss(QuicPacketCount current); |
| // Compute a new congestion window to use after a received ACK. |
| - // Returns the new congestion window in packets. The new congestion window |
| - // follows a cubic function that depends on the time passed since last |
| - // packet loss. |
| + // Returns the new congestion window in packets. The new congestion |
| + // window follows a cubic function that depends on the time passed |
| + // since last packet loss. |
| QuicPacketCount CongestionWindowAfterAck(QuicPacketCount current, |
| QuicTime::Delta delay_min); |
| @@ -44,6 +44,11 @@ class NET_EXPORT_PRIVATE Cubic { |
| // window. Resets Cubic state during quiescence. |
| void OnApplicationLimited(); |
| + // If true, enable the fix for the convex-mode signing bug. See |
| + // b/32170105 for more information about the bug. |
|
Zhongyi Shi
2016/12/01 22:15:23
nit: you might want to remove this link here.
|
| + // TODO(jokulik): Remove once the fix is enabled by default. |
| + void SetFixConvexMode(bool fix_convex_mode); |
| + |
| private: |
| static const QuicTime::Delta MaxCubicTimeInterval() { |
| return QuicTime::Delta::FromMilliseconds(30); |
| @@ -97,6 +102,10 @@ class NET_EXPORT_PRIVATE Cubic { |
| // Last congestion window in packets computed by cubic function. |
| QuicPacketCount last_target_congestion_window_; |
| + // Fix convex mode for cubic. |
| + // TODO(jokulik): Remove once the cubic convex experiment is done. |
| + bool fix_convex_mode_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(Cubic); |
| }; |