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

Unified Diff: net/quic/congestion_control/quic_congestion_manager.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/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;
« no previous file with comments | « net/quic/congestion_control/inter_arrival_sender.cc ('k') | net/quic/congestion_control/quic_congestion_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698