| 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;
|
| [RuntimeEnabled=NetInfoRtt, MeasureAs=NetInfoRtt] readonly attribute Milliseconds rtt;
|
| [RuntimeEnabled=NetInfoDownlink, MeasureAs=NetInfoDownlink] readonly attribute Megabit downlink;
|
| };
|
|
|