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

Unified Diff: third_party/WebKit/Source/platform/exported/WebNetworkStateNotifier.cpp

Issue 2863973003: Expose RTT and downlink bandwidth using experimental Javascript API (Closed)
Patch Set: jkarlin 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: third_party/WebKit/Source/platform/exported/WebNetworkStateNotifier.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebNetworkStateNotifier.cpp b/third_party/WebKit/Source/platform/exported/WebNetworkStateNotifier.cpp
index c979c0f3d48ebb45a192b12e3c1a585897d1bc24..f11bc19b92ebfc8ab2304160a4c9d3d9eea010df 100644
--- a/third_party/WebKit/Source/platform/exported/WebNetworkStateNotifier.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebNetworkStateNotifier.cpp
@@ -43,4 +43,11 @@ void WebNetworkStateNotifier::SetWebConnection(WebConnectionType type,
GetNetworkStateNotifier().SetWebConnection(type, max_bandwidth_mbps);
}
+void WebNetworkStateNotifier::SetNetworkQuality(int http_rtt_msec,
+ int transport_rtt_msec,
+ int downlink_throughput_kbps) {
+ GetNetworkStateNotifier().SetWebNetworkQuality(
+ http_rtt_msec, transport_rtt_msec, downlink_throughput_kbps);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698