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

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: 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..3417e99a294ecc5204c15b3a58b3bd55a9e49ec5 100644
--- a/net/nqe/external_estimate_provider.h
+++ b/net/nqe/external_estimate_provider.h
@@ -19,8 +19,16 @@ 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 throughput (in kilobits per
bengr 2016/05/27 19:58:42 nit: downstream throughput (in kilobits per second
tbansal1 2016/05/27 23:39:15 Done.
+ // second) and upstream throughput (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() {}

Powered by Google App Engine
This is Rietveld 408576698