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

Unified Diff: net/nqe/network_quality_estimator.h

Issue 2347783003: [OfflinePages, NetworkQualityEstimator] Use NetworkQualityEstimator to decide on triggering Backgro… (Closed)
Patch Set: Addressed feedback 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 | « components/offline_pages/background/request_coordinator_unittest.cc ('k') | no next file » | 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 248d2089d5ac00583d178efc580ec631920b56bf..23a6f6a609c7888d3a3eea6a2d402f5d20d8820e 100644
--- a/net/nqe/network_quality_estimator.h
+++ b/net/nqe/network_quality_estimator.h
@@ -120,6 +120,21 @@ class NET_EXPORT NetworkQualityEstimator
DISALLOW_COPY_AND_ASSIGN(ThroughputObserver);
};
+ // Provides simple interface to obtain the effective connection type.
+ class NET_EXPORT NetworkQualityProvider {
+ public:
+ // Returns the current effective connection type.
+ virtual EffectiveConnectionType GetEffectiveConnectionType() const = 0;
+
+ virtual ~NetworkQualityProvider() {}
+
+ protected:
+ NetworkQualityProvider() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(NetworkQualityProvider);
+ };
+
// Creates a new NetworkQualityEstimator.
// |variation_params| is the map containing all field trial parameters
// related to NetworkQualityEstimator field trial.
« no previous file with comments | « components/offline_pages/background/request_coordinator_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698