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

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

Issue 706203003: Update from https://crrev.com/303153 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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 | « net/proxy/proxy_resolver_winhttp.cc ('k') | net/quic/congestion_control/rtt_stats.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/congestion_control/rtt_stats.h
diff --git a/net/quic/congestion_control/rtt_stats.h b/net/quic/congestion_control/rtt_stats.h
index b7ec6b94dcfbb05a171aade4857210c852be9a04..9dd5620b19ee3cf6a4afb66f7a4c782249831ad1 100644
--- a/net/quic/congestion_control/rtt_stats.h
+++ b/net/quic/congestion_control/rtt_stats.h
@@ -41,12 +41,11 @@ class NET_EXPORT_PRIVATE RttStats {
// |num_samples| UpdateRtt calls.
void SampleNewRecentMinRtt(uint32 num_samples);
- QuicTime::Delta SmoothedRtt() const;
-
- // Returns the min_rtt for the entire connection if a min has been measured.
- // This returns an initial non-zero RTT estimate if no measurements have yet
- // been made.
- QuicTime::Delta MinRtt() const;
+ // Returns the EWMA smoothed RTT for the connection.
+ // May return Zero if no valid updates have occurred.
+ QuicTime::Delta smoothed_rtt() const {
+ return smoothed_rtt_;
+ }
int64 initial_rtt_us() const {
return initial_rtt_us_;
@@ -57,10 +56,18 @@ class NET_EXPORT_PRIVATE RttStats {
initial_rtt_us_ = initial_rtt_us;
}
+ // The most recent rtt measurement.
+ // May return Zero if no valid updates have occurred.
QuicTime::Delta latest_rtt() const {
return latest_rtt_;
}
+ // Returns the min_rtt for the entire connection.
+ // May return Zero if no valid updates have occurred.
+ QuicTime::Delta min_rtt() const {
+ return min_rtt_;
+ }
+
// Returns the min_rtt since SampleNewRecentMinRtt has been called, or the
// min_rtt for the entire connection if SampleNewMinRtt was never called.
QuicTime::Delta recent_min_rtt() const {
« no previous file with comments | « net/proxy/proxy_resolver_winhttp.cc ('k') | net/quic/congestion_control/rtt_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698