Index: net/quic/congestion_control/send_algorithm_interface.h |
diff --git a/net/quic/congestion_control/send_algorithm_interface.h b/net/quic/congestion_control/send_algorithm_interface.h |
index b0b4cacea525d442d3da135c60c2ff42bd4928c9..8ff39611f08c04e5c15d4b022edab90cee065b86 100644 |
--- a/net/quic/congestion_control/send_algorithm_interface.h |
+++ b/net/quic/congestion_control/send_algorithm_interface.h |
@@ -87,6 +87,14 @@ class NET_EXPORT_PRIVATE SendAlgorithmInterface { |
// Note 1: the caller is responsible for sanity checking this value. |
// Note 2: this will return zero if we don't have enough data for an estimate. |
virtual QuicTime::Delta RetransmissionDelay() = 0; |
+ |
+ // 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. |
+ virtual QuicByteCount GetCongestionWindow() = 0; |
+ |
+ // Sets the value of the current congestion window to |window|. |
+ virtual void SetCongestionWindow(QuicByteCount window) = 0; |
}; |
} // namespace net |