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

Unified Diff: net/nqe/network_quality_estimator.h

Issue 2261813002: Add a network quality cache observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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') | no next file with comments »
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 80c7feb6703eb7999e95c9db5e55583680abe5bb..ef53b6ce8d0039b9bd6e0d7de59eeaf1d3042e73 100644
--- a/net/nqe/network_quality_estimator.h
+++ b/net/nqe/network_quality_estimator.h
@@ -286,6 +286,9 @@ class NET_EXPORT NetworkQualityEstimator
// Returns a random double in the range [0.0, 1.0). Virtualized for testing.
virtual double RandDouble() const;
+ // Returns a pointer to |network_quality_store_|. Used only for testing.
+ nqe::internal::NetworkQualityStore* NetworkQualityStoreForTesting() const;
+
private:
FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest,
AdaptiveRecomputationEffectiveConnectionType);
@@ -611,7 +614,7 @@ class NET_EXPORT NetworkQualityEstimator
const double correlation_uma_logging_probability_;
// Stores the qualities of different networks.
- nqe::internal::NetworkQualityStore network_quality_store_;
+ std::unique_ptr<nqe::internal::NetworkQualityStore> network_quality_store_;
base::ThreadChecker thread_checker_;
« no previous file with comments | « no previous file | net/nqe/network_quality_estimator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698