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

Unified Diff: net/nqe/network_quality_estimator.h

Issue 2113363002: NQE: Add Transport RTT based GetECT algorithm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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_estimator.cc » ('j') | net/nqe/network_quality_estimator.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/nqe/network_quality_estimator.h
diff --git a/net/nqe/network_quality_estimator.h b/net/nqe/network_quality_estimator.h
index b7fc886b5ab558f41fe1ed6a1e364c9bfb0e5fb6..62d5f7ebf7517f2270e57034a168e954dc3c2024 100644
--- a/net/nqe/network_quality_estimator.h
+++ b/net/nqe/network_quality_estimator.h
@@ -372,6 +372,7 @@ class NET_EXPORT_PRIVATE NetworkQualityEstimator
// connection type.
enum class EffectiveConnectionTypeAlgorithm {
HTTP_RTT_AND_DOWNSTREAM_THROUGHOUT = 0,
+ TRANSPORT_RTT_OR_DOWNSTREAM_THROUGHOUT,
EFFECTIVE_CONNECTION_TYPE_ALGORITHM_LAST
};
@@ -485,6 +486,14 @@ class NET_EXPORT_PRIVATE NetworkQualityEstimator
GetRecentEffectiveConnectionTypeHttpRTTAndDownstreamThroughput(
const base::TimeTicks& start_time) const;
+ // Returns the effective type of the current connection based on only the
+ // samples observed after |start_time|. Uses transport RTT and downstream
+ // throughput to compute the effective connection type, and requires at least
+ // one of them to have a valid value.
+ EffectiveConnectionType
+ GetRecentEffectiveConnectionTypeTransportRTTOrDownstreamThroughput(
+ const base::TimeTicks& start_time) const;
+
// Values of external estimate provider status. This enum must remain
// synchronized with the enum of the same name in
// metrics/histograms/histograms.xml.
« no previous file with comments | « no previous file | net/nqe/network_quality_estimator.cc » ('j') | net/nqe/network_quality_estimator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698