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

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

Issue 2883763002: Expose ECT to render frames, Blink and NetInfo (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 a09b917fc0295fb7f76f2e29240a80107864b6fd..c47e8b9e9bb9af804c273f605bde9bd69defd146 100644
--- a/third_party/WebKit/Source/modules/netinfo/NetworkInformation.idl
+++ b/third_party/WebKit/Source/modules/netinfo/NetworkInformation.idl
@@ -15,6 +15,13 @@ enum ConnectionType {
"unknown"
};
+enum EffectiveConnectionType {
+ "slow-2g",
+ "2g",
+ "3g",
+ "4g"
+};
+
typedef unrestricted double Megabit;
typedef unsigned long long Milliseconds;
@@ -28,6 +35,7 @@ typedef unsigned long long Milliseconds;
[RuntimeEnabled=NetInfoDownlinkMax, MeasureAs=NetInfoDownlinkMax] readonly attribute Megabit downlinkMax;
[RuntimeEnabled=NetInfoDownlinkMax, MeasureAs=NetInfoOnChange] attribute EventHandler onchange;
[MeasureAs=NetInfoOnTypeChange] attribute EventHandler ontypechange;
+ [MeasureAs=NetInfoEffectiveType] readonly attribute EffectiveConnectionType effectiveType;
foolip 2017/05/29 11:39:40 Looks like RuntimeEnabled=NetInfoEffectiveType was
[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