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

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

Issue 76723002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compilation error Created 7 years, 1 month 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 | « no previous file | net/quic/congestion_control/quic_congestion_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 23a623b38f5006c50d5ad3da9ab8b025a8d63ab1..a62e4843c180ef3dc81f081f0c36fc4d946e8bf1 100644
--- a/net/quic/congestion_control/quic_congestion_manager.h
+++ b/net/quic/congestion_control/quic_congestion_manager.h
@@ -87,6 +87,9 @@ class NET_EXPORT_PRIVATE QuicCongestionManager {
// Returns amount of time for delayed ack timer.
const QuicTime::Delta DelayedAckTime();
+ // Returns the current RTO delay. |unacked_packet_count| is the number of
+ // currently outstanding packets. |number_retransmissions| is the number of
+ // sequential retransmission timeouts that have occrued.
const QuicTime::Delta GetRetransmissionDelay(
size_t unacked_packets_count,
size_t number_retransmissions) const;
@@ -110,9 +113,6 @@ class NET_EXPORT_PRIVATE QuicCongestionManager {
friend class test::QuicCongestionManagerPeer;
typedef std::map<QuicPacketSequenceNumber, size_t> PendingPacketsMap;
- // Get the current(last) rtt. Infinite is returned if invalid.
- const QuicTime::Delta rtt();
-
void CleanupPacketHistory();
const QuicClock* clock_;
@@ -121,7 +121,7 @@ class NET_EXPORT_PRIVATE QuicCongestionManager {
SendAlgorithmInterface::SentPacketsMap packet_history_map_;
PendingPacketsMap pending_packets_;
QuicPacketSequenceNumber largest_missing_;
- QuicTime::Delta current_rtt_;
+ QuicTime::Delta rtt_sample_; // RTT estimate from the most recent ACK.
DISALLOW_COPY_AND_ASSIGN(QuicCongestionManager);
};
« no previous file with comments | « no previous file | net/quic/congestion_control/quic_congestion_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698