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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2857093002: Expose changes in the network quality to the renderers (Closed)
Patch Set: ps 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/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 9dad0206afcd8f05445f0486fe1a066391a0249b..4257028ba1206bc8f08dc7287126dcc7d489db04 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -2129,6 +2129,15 @@ void RenderThreadImpl::OnNetworkConnectionChanged(
NetConnectionTypeToWebConnectionType(type), max_bandwidth_mbps);
}
+void RenderThreadImpl::OnNetworkQualityChanged(
+ double http_rtt_msec,
+ double transport_rtt_msec,
+ double downlink_throughput_kbps) {
+ UMA_HISTOGRAM_EXACT_LINEAR("NQE.RenderThreadNotified", 1, 2);
+ // TODO(tbansal): https://crbug.com/719108. Notify WebNetworkStateNotifier of
+ // the change in the network quality.
nasko 2017/05/08 18:27:45 Is there a reason why this code is not included in
tbansal1 2017/05/08 19:50:19 I can include that but I thought it would make the
+}
+
void RenderThreadImpl::SetWebKitSharedTimersSuspended(bool suspend) {
#if defined(OS_ANDROID)
if (suspend) {

Powered by Google App Engine
This is Rietveld 408576698