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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2863973003: Expose RTT and downlink bandwidth using experimental Javascript API (Closed)
Patch Set: Rebased 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/renderer/render_thread_impl.h ('k') | content/test/data/net_info.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index da073cb259b6df21e665df76ab06b0951da9b183..92e8f9a787c8b462df0f8ea09b7db13ab27e9555 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -2138,12 +2138,12 @@ void RenderThreadImpl::OnNetworkConnectionChanged(
}
void RenderThreadImpl::OnNetworkQualityChanged(
- double http_rtt_msec,
- double transport_rtt_msec,
+ base::TimeDelta http_rtt,
+ base::TimeDelta transport_rtt,
double downlink_throughput_kbps) {
UMA_HISTOGRAM_BOOLEAN("NQE.RenderThreadNotified", true);
- // TODO(tbansal): https://crbug.com/719108. Notify WebNetworkStateNotifier of
- // the change in the network quality.
+ WebNetworkStateNotifier::SetNetworkQuality(http_rtt, transport_rtt,
+ downlink_throughput_kbps);
}
void RenderThreadImpl::SetWebKitSharedTimersSuspended(bool suspend) {
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | content/test/data/net_info.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698