Index: net/quic/congestion_control/quic_congestion_manager.h |
diff --git a/net/quic/congestion_control/quic_congestion_manager.h b/net/quic/congestion_control/quic_congestion_manager.h |
index d574e511888b8d1c3e9c25b1133694ea69b3d953..6d157198b17c9ce2d53f059e1de120284ca0804b 100644 |
--- a/net/quic/congestion_control/quic_congestion_manager.h |
+++ b/net/quic/congestion_control/quic_congestion_manager.h |
@@ -95,6 +95,14 @@ class NET_EXPORT_PRIVATE QuicCongestionManager { |
// Returns the estimated bandwidth calculated by the congestion algorithm. |
QuicBandwidth BandwidthEstimate(); |
+ // Returns the size of the current congestion window. Note, this |
+ // is not the *available* window. Some send algorithms may not use a |
+ // congestion window and will return 0. |
+ QuicByteCount GetCongestionWindow(); |
+ |
+ // Sets the value of the current congestion window to |window|. |
+ void SetCongestionWindow(QuicByteCount window); |
+ |
private: |
friend class test::QuicConnectionPeer; |
friend class test::QuicCongestionManagerPeer; |