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

Unified Diff: chrome/browser/net/nqe/ui_network_quality_estimator_service.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
Index: chrome/browser/net/nqe/ui_network_quality_estimator_service.h
diff --git a/chrome/browser/net/nqe/ui_network_quality_estimator_service.h b/chrome/browser/net/nqe/ui_network_quality_estimator_service.h
index 1d6a98e91b30684c68a520cc845de7ba48176ffc..9d336f4f85cfe2fa8e36f417544559fbaab3d12e 100644
--- a/chrome/browser/net/nqe/ui_network_quality_estimator_service.h
+++ b/chrome/browser/net/nqe/ui_network_quality_estimator_service.h
@@ -9,15 +9,18 @@
#include "base/memory/weak_ptr.h"
#include "components/keyed_service/core/keyed_service.h"
#include "net/nqe/effective_connection_type.h"
+#include "net/nqe/network_quality_estimator.h"
// UI service to determine the current EffectiveConnectionType.
-class UINetworkQualityEstimatorService : public KeyedService {
+class UINetworkQualityEstimatorService
+ : public KeyedService,
+ public net::NetworkQualityEstimator::NetworkQualityProvider {
public:
UINetworkQualityEstimatorService();
~UINetworkQualityEstimatorService() override;
// The current EffectiveConnectionType.
- net::EffectiveConnectionType GetEffectiveConnectionType() const;
+ net::EffectiveConnectionType GetEffectiveConnectionType() const override;
// Tests can manually set EffectiveConnectionType, but browser tests should
// expect that the EffectiveConnectionType could change.

Powered by Google App Engine
This is Rietveld 408576698