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

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

Issue 185053006: Refactor of QUIC's rtt storage and calculation to have a single RttStats (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
« no previous file with comments | « net/quic/congestion_control/rtt_stats.cc ('k') | net/quic/congestion_control/send_algorithm_interface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 359c65c61d91d3b48f82f579c0adaa95ebb92180..afd52580a104d18eb789caa9595f8db7b34a604a 100644
--- a/net/quic/congestion_control/send_algorithm_interface.h
+++ b/net/quic/congestion_control/send_algorithm_interface.h
@@ -21,9 +21,12 @@
namespace net {
+class RttStats;
+
class NET_EXPORT_PRIVATE SendAlgorithmInterface {
public:
static SendAlgorithmInterface* Create(const QuicClock* clock,
+ const RttStats* rtt_stats,
CongestionFeedbackType type,
QuicConnectionStats* stats);
@@ -76,11 +79,10 @@ class NET_EXPORT_PRIVATE SendAlgorithmInterface {
virtual QuicBandwidth BandwidthEstimate() const = 0;
// Updates the smoothed RTT based on a new sample.
+ // TODO(ianswett): Now that the RTT is managed by RTTStats, it may be
+ // possible to remove this method.
virtual void UpdateRtt(QuicTime::Delta rtt_sample) = 0;
- // TODO(satyamshekhar): Monitor MinRtt.
- virtual QuicTime::Delta SmoothedRtt() const = 0;
-
// Get the send algorithm specific retransmission delay, called RTO in TCP,
// 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.
« no previous file with comments | « net/quic/congestion_control/rtt_stats.cc ('k') | net/quic/congestion_control/send_algorithm_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698