Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1038)

Unified Diff: net/quic/congestion_control/send_algorithm_interface.h

Issue 47283002: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compilation error Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « net/quic/congestion_control/quic_congestion_manager.cc ('k') | net/quic/congestion_control/tcp_cubic_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698