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

Unified Diff: third_party/WebKit/Source/modules/netinfo/NetworkInformation.idl

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
Index: third_party/WebKit/Source/modules/netinfo/NetworkInformation.idl
diff --git a/third_party/WebKit/Source/modules/netinfo/NetworkInformation.idl b/third_party/WebKit/Source/modules/netinfo/NetworkInformation.idl
index 4520d9a57b90cb3807df9cba2cc4bab868de2f58..a09b917fc0295fb7f76f2e29240a80107864b6fd 100644
--- a/third_party/WebKit/Source/modules/netinfo/NetworkInformation.idl
+++ b/third_party/WebKit/Source/modules/netinfo/NetworkInformation.idl
@@ -16,6 +16,7 @@ enum ConnectionType {
};
typedef unrestricted double Megabit;
+typedef unsigned long long Milliseconds;
[
ActiveScriptWrappable,
@@ -27,4 +28,6 @@ typedef unrestricted double Megabit;
[RuntimeEnabled=NetInfoDownlinkMax, MeasureAs=NetInfoDownlinkMax] readonly attribute Megabit downlinkMax;
[RuntimeEnabled=NetInfoDownlinkMax, MeasureAs=NetInfoOnChange] attribute EventHandler onchange;
[MeasureAs=NetInfoOnTypeChange] attribute EventHandler ontypechange;
+ [RuntimeEnabled=NetInfoRtt, MeasureAs=NetInfoRtt] readonly attribute Milliseconds rtt;
+ [RuntimeEnabled=NetInfoDownlink, MeasureAs=NetInfoDownlink] readonly attribute Megabit downlink;
};

Powered by Google App Engine
This is Rietveld 408576698