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

Unified Diff: net/quic/core/quic_sent_packet_manager_interface.h

Issue 2540143003: Allow congestion controller state to be accessed by the debug visitors. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « net/quic/core/quic_sent_packet_manager.cc ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_sent_packet_manager_interface.h
diff --git a/net/quic/core/quic_sent_packet_manager_interface.h b/net/quic/core/quic_sent_packet_manager_interface.h
index d2bd0554bbb165e5aedeee4f8316fe014dbcff26..b1860e4d008f3a1b77df2ce546947d6e5e836224 100644
--- a/net/quic/core/quic_sent_packet_manager_interface.h
+++ b/net/quic/core/quic_sent_packet_manager_interface.h
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "net/base/net_export.h"
+#include "net/quic/core/congestion_control/send_algorithm_interface.h"
#include "net/quic/core/quic_packets.h"
#include "net/quic/core/quic_pending_retransmission.h"
#include "net/quic/core/quic_sustained_bandwidth_recorder.h"
@@ -189,6 +190,10 @@ class NET_EXPORT_PRIVATE QuicSentPacketManagerInterface {
// Signals to the congestion controller that the connection has no outstanding
// data to send.
virtual void OnApplicationLimited() = 0;
+
+ // Returns the currently used congestion control algorithm. The manager
+ // retains the ownership of the algorithm.
+ virtual const SendAlgorithmInterface* GetSendAlgorithm() const = 0;
};
} // namespace net
« no previous file with comments | « net/quic/core/quic_sent_packet_manager.cc ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698