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

Unified Diff: content/test/data/net_info.html

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.cc ('k') | net/nqe/network_quality_estimator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/net_info.html
diff --git a/content/test/data/net_info.html b/content/test/data/net_info.html
index aa3e5e1929f440b2636f699d4bb68d05592bd576..0bf6d0c888c6e21be378bded0c432e94128fff11 100644
--- a/content/test/data/net_info.html
+++ b/content/test/data/net_info.html
@@ -14,6 +14,14 @@ function getOnLine() {
sendValueToTest(navigator.onLine);
}
+function getRtt() {
+ sendValueToTest(navigator.connection.rtt.toString());
+}
+
+function getDownlink() {
+ sendValueToTest(navigator.connection.downlink.toString());
+}
+
function sendValueToTest(value) {
window.domAutomationController.setAutomationId(0);
window.domAutomationController.send(value);
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | net/nqe/network_quality_estimator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698