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

Unified Diff: net/nqe/network_quality_estimator.h

Issue 2322183002: Add Network Quality Estimator (NQE) pref manager (Closed)
Patch Set: rebased Created 4 years, 3 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_qualities_prefs_manager_unittest.cc ('k') | 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 23a6f6a609c7888d3a3eea6a2d402f5d20d8820e..46b6a8f5017a82ffc38f73aad70945f38fccf93f 100644
--- a/net/nqe/network_quality_estimator.h
+++ b/net/nqe/network_quality_estimator.h
@@ -233,6 +233,14 @@ class NET_EXPORT NetworkQualityEstimator
void ReportEffectiveConnectionTypeForTesting(
EffectiveConnectionType effective_connection_type);
+ // Adds and removes |observer| from the list of cache observers.
+ void AddNetworkQualitiesCacheObserver(
+ nqe::internal::NetworkQualityStore::NetworkQualitiesCacheObserver*
+ observer);
+ void RemoveNetworkQualitiesCacheObserver(
+ nqe::internal::NetworkQualityStore::NetworkQualitiesCacheObserver*
+ observer);
+
protected:
// NetworkChangeNotifier::ConnectionTypeObserver implementation:
void OnConnectionTypeChanged(
@@ -300,9 +308,6 @@ 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);
« no previous file with comments | « net/nqe/network_qualities_prefs_manager_unittest.cc ('k') | net/nqe/network_quality_estimator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698