Chromium Code Reviews| Index: components/arc/common/net.mojom |
| diff --git a/components/arc/common/net.mojom b/components/arc/common/net.mojom |
| index ab727b092ce4df1f70514e7d412ba0569bac7e66..ddc64d9170a2cf07f8c69942e9239c7603665c00 100644 |
| --- a/components/arc/common/net.mojom |
| +++ b/components/arc/common/net.mojom |
| @@ -39,6 +39,57 @@ union NetworkDetails { |
| ConfiguredNetworkDetails configured; |
| }; |
| +[Extensible] |
| +enum IPAddressType { |
| + IPV4, |
| + IPV6, |
| +}; |
| + |
| +struct IPConfiguration { |
| + string gateway; |
| + string ip_address; |
| + array<string> name_servers; |
| + int32 routing_prefix; |
| + IPAddressType type; |
| + string web_proxy_auto_discovery_url; |
| +}; |
| + |
| +[Extensible] |
| +enum SecurityType { |
| + NONE, |
| + WEP_PSK, |
| + WEP_8021X, |
| + WPA_PSK, |
| + WPA_EAP, |
| +}; |
| + |
| +struct WiFi { |
|
Luis Héctor Chávez
2016/05/14 20:07:29
WifiInfo? WifiConfiguration?
Kevin Cernekee
2016/05/15 21:02:34
Acknowledged.
|
| + string bssid; |
| + int32 frequency; |
| + string hex_ssid; |
| + bool hidden_ssid; |
| + SecurityType security; |
| + int32 signal_strength; |
| +}; |
| + |
| +[Extensible] |
| +enum NetworkType { |
| + CELLULAR, |
| + ETHERNET, |
| + VPN, |
| + WIFI, |
| + WIMAX, |
| +}; |
| + |
| +struct NetworkConfiguration { |
| + ConnectionStateType connection_state; |
| + string guid; |
| + array<IPConfiguration>? ip_configs; |
| + string? mac_address; |
| + NetworkType type; |
| + WiFi? wifi; |
|
Luis Héctor Chávez
2016/05/14 20:07:29
This looks like it will be null or not depending o
Kevin Cernekee
2016/05/15 21:02:34
Acknowledged.
|
| +}; |
| + |
| struct WifiConfiguration { |
| // These correspond to ONC properties returned by |
| // chrome.networkingPrivate.getNetworks() and createNetwork(). |
| @@ -102,6 +153,11 @@ interface NetHost { |
| // Disconnects from network |guid|. |
| [MinVersion=4] StartDisconnect@8(string guid) => (NetworkResult status); |
| + |
| + // Retrieve details (IP, SSID, etc.) about the current network connection. |
| + [MinVersion=5] GetDefaultNetwork@9() => ( |
| + NetworkConfiguration? logical_default, |
| + NetworkConfiguration? physical_default); |
| }; |
| interface NetInstance { |
| @@ -110,4 +166,8 @@ interface NetInstance { |
| // Notifies the instance of a WiFI AP scan being completed. |
| [MinVersion=1] ScanCompleted@1(); |
| + |
| + [MinVersion=2] DefaultNetworkChanged@2( |
| + NetworkConfiguration? logical_default, |
| + NetworkConfiguration? physical_default); |
| }; |