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

Unified Diff: net/nqe/network_quality.h

Issue 2172403002: Provide default thresholds for effective connection types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bengr comments Created 4 years, 5 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 | « no previous file | net/nqe/network_quality.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/nqe/network_quality.h
diff --git a/net/nqe/network_quality.h b/net/nqe/network_quality.h
index dc32ef4e9eb3e103cc2292506c0cc76628947d45..457c71e88878ec8f818a9578976730cf469d57f0 100644
--- a/net/nqe/network_quality.h
+++ b/net/nqe/network_quality.h
@@ -43,6 +43,10 @@ class NET_EXPORT_PRIVATE NetworkQuality {
bool operator==(const NetworkQuality& other) const;
+ // Returns true if |this| is at least as fast as |other| for all parameters
+ // (HTTP RTT, transport RTT etc.)
+ bool IsFaster(const NetworkQuality& other) const;
+
// Returns the estimate of the round trip time at the HTTP layer.
const base::TimeDelta& http_rtt() const { return http_rtt_; }
« no previous file with comments | « no previous file | net/nqe/network_quality.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698