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

Unified Diff: content/common/renderer.mojom

Issue 2857093002: Expose changes in the network quality to the renderers (Closed)
Patch Set: isherman comments Created 3 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
« no previous file with comments | « content/browser/net_info_browsertest.cc ('k') | content/public/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/renderer.mojom
diff --git a/content/common/renderer.mojom b/content/common/renderer.mojom
index 6c7fb6abb946757b3f8bc5cdb246c0a774c4e9c0..b860044d7414fda2a3b01cd37ca535aeddc844b7 100644
--- a/content/common/renderer.mojom
+++ b/content/common/renderer.mojom
@@ -157,6 +157,14 @@ interface Renderer {
OnNetworkConnectionChanged(NetworkConnectionType connection_type,
double max_bandwidth_mbps);
+ // Tells the renderer process that the network quality estimate has changed.
+ // The RTT estimates are in milliseconds, while the downstream throughput is
+ // computed in kilobits per second. If an estimate of the HTTP or transport
+ // RTT is unavailable, it will be set to net::nqe::internal::InvalidRTT(). If
+ // the throughput estimate is unavailable, it will be set to
+ // net::nqe::internal::kInvalidThroughput.
+ OnNetworkQualityChanged(double http_rtt_msec, double transport_rtt_msec, double bandwidth_kbps);
+
// Tells the renderer to suspend/resume the webkit timers. Only for use on
// Android.
SetWebKitSharedTimersSuspended(bool suspend);
« no previous file with comments | « content/browser/net_info_browsertest.cc ('k') | content/public/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698