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

Unified Diff: components/arc/common/net.mojom

Issue 1925083003: Notify ARC of default network changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wifi-change
Patch Set: move helpers to anonymous namespace Created 4 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 | « no previous file | components/arc/net/arc_net_host_impl.h » ('j') | components/arc/net/arc_net_host_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/common/net.mojom
diff --git a/components/arc/common/net.mojom b/components/arc/common/net.mojom
index 3cc5928de4729dcce8acbc74d89776500a7a76fb..c4bfac76b0539a3df1d8e196a7a5de0d6374acba 100644
--- a/components/arc/common/net.mojom
+++ b/components/arc/common/net.mojom
@@ -39,6 +39,60 @@ 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 {
+ 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 {
+ // These correspond to ONC properties returned by
+ // chrome.networkingPrivate.getProperties().
+ // See components/onc/docs/onc_spec.html
+ ConnectionStateType connection_state;
+ string guid;
+ array<IPConfiguration>? ip_configs;
+ string? mac_address;
+ NetworkType type;
+ WiFi? wifi;
+};
+
struct WifiConfiguration {
// These correspond to ONC properties returned by
// chrome.networkingPrivate.getNetworks() and createNetwork().
@@ -102,6 +156,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 +169,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);
};
« no previous file with comments | « no previous file | components/arc/net/arc_net_host_impl.h » ('j') | components/arc/net/arc_net_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698