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

Unified Diff: content/common/renderer.mojom

Issue 2863973003: Expose RTT and downlink bandwidth using experimental Javascript API (Closed)
Patch Set: kinuko 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
Index: content/common/renderer.mojom
diff --git a/content/common/renderer.mojom b/content/common/renderer.mojom
index b860044d7414fda2a3b01cd37ca535aeddc844b7..f5975784feba20b7be24d50bef6d5712707f2642 100644
--- a/content/common/renderer.mojom
+++ b/content/common/renderer.mojom
@@ -6,6 +6,7 @@ module content.mojom;
import "content/common/native_types.mojom";
import "ipc/ipc.mojom";
+import "mojo/common/time.mojom";
import "ui/gfx/geometry/mojo/geometry.mojom";
import "ui/gfx/mojo/icc_profile.mojom";
@@ -158,12 +159,11 @@ interface Renderer {
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);
+ // 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(mojo.common.mojom.TimeDelta http_rtt, mojo.common.mojom.TimeDelta transport_rtt, double bandwidth_kbps);
dcheng 2017/05/17 12:27:46 Nit: 80 characters
tbansal1 2017/05/18 00:10:29 Done. I assumed git cl format would have fixed it.
// Tells the renderer to suspend/resume the webkit timers. Only for use on
// Android.

Powered by Google App Engine
This is Rietveld 408576698