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

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

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: 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..d910883fbf1bd2eb68354b05ad3de935c26e1b5f 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(TimeDelta http_rtt,
+ TimeDelta transport_rtt,
+ int downlink_throughput_kbps) {
+ GetNetworkStateNotifier().SetNetworkQuality(http_rtt, transport_rtt,
+ downlink_throughput_kbps);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698