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

Unified Diff: net/nqe/network_quality_estimator_params.h

Issue 2893933004: Throughput: Change the min number of requests in flight required (Closed)
Patch Set: ryansturm comments Created 3 years, 7 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/nqe/network_quality_estimator.cc ('k') | net/nqe/network_quality_estimator_params.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/nqe/network_quality_estimator_params.h
diff --git a/net/nqe/network_quality_estimator_params.h b/net/nqe/network_quality_estimator_params.h
index 5c279e1b39d5b615c9fe5db630f3536c9353ecc8..f543a54e41a275e20fcdea276783cffbf7e0115d 100644
--- a/net/nqe/network_quality_estimator_params.h
+++ b/net/nqe/network_quality_estimator_params.h
@@ -60,6 +60,13 @@ class NET_EXPORT_PRIVATE NetworkQualityEstimatorParams {
// Returns the threshold for effective connection type |type|.
const NetworkQuality& ConnectionThreshold(EffectiveConnectionType type) const;
+ // Returns the minimum number of requests in-flight to consider the network
+ // fully utilized. A throughput observation is taken only when the network is
+ // considered as fully utilized.
+ size_t throughput_min_requests_in_flight() const {
+ return throughput_min_requests_in_flight_;
+ }
+
// Returns the weight multiplier per second, which represents the factor by
// which the weight of an observation reduces every second.
double weight_multiplier_per_second() const {
@@ -103,6 +110,7 @@ class NET_EXPORT_PRIVATE NetworkQualityEstimatorParams {
// NetworkQualityEstimator field trial.
const std::map<std::string, std::string> params_;
+ const size_t throughput_min_requests_in_flight_;
const double weight_multiplier_per_second_;
const double weight_multiplier_per_dbm_;
const double correlation_uma_logging_probability_;
« no previous file with comments | « net/nqe/network_quality_estimator.cc ('k') | net/nqe/network_quality_estimator_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698