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

Unified Diff: net/nqe/external_estimate_provider.h

Issue 2010003002: Reduce the number of calls to external estimate provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 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
Index: net/nqe/external_estimate_provider.h
diff --git a/net/nqe/external_estimate_provider.h b/net/nqe/external_estimate_provider.h
index 7fd58f5f9dd3876efcacbd38aa947aa88ccc00a6..c75c05e3c26f0c49c72e8fcbb9f47d7a5009dec3 100644
--- a/net/nqe/external_estimate_provider.h
+++ b/net/nqe/external_estimate_provider.h
@@ -19,8 +19,15 @@ class NET_EXPORT ExternalEstimateProvider {
public:
class NET_EXPORT UpdatedEstimateDelegate {
public:
- // Will be called when an updated estimate is available.
- virtual void OnUpdatedEstimateAvailable() = 0;
+ // Will be called with updated RTT, downstream and upstream throughput (both
+ // in kilobits per second) when an updated estimate is available. If |rtt|
+ // is unavailable, it is set to base::TimeDelta(). If
+ // |downstream_throughput_kbps| or |upstream_throughput_kbps| are
+ // unavailble, they are set to -1, respectively.
+ virtual void OnUpdatedEstimateAvailable(
+ const base::TimeDelta& rtt,
+ int32_t downstream_throughput_kbps,
+ int32_t upstream_throughput_kbps) = 0;
protected:
UpdatedEstimateDelegate() {}
« no previous file with comments | « chrome/browser/android/net/external_estimate_provider_android_unittest.cc ('k') | net/nqe/network_quality_estimator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698