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

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

Issue 1751793002: ARC: Remove error status setting in GetNetworks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added enum instead of booleans for GetNetworks. Created 4 years, 10 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 b35ad7a33eb712a3773a856d03f15d37395ba00e..dde940d693fe0fc83246583c1ff0c355282de16e 100644
--- a/components/arc/common/net.mojom
+++ b/components/arc/common/net.mojom
@@ -10,6 +10,12 @@ enum NetworkResult {
FAILURE = 1,
};
+[Extensible]
+enum GetNetworksRequestType {
+ CONFIGURED_ONLY = 0,
+ VISIBLE_ONLY = 1,
+};
+
struct WifiConfiguration {
// These correspond to ONC properties returned by
// chrome.networkingPrivate.getNetworks().
@@ -29,13 +35,17 @@ struct NetworkData {
interface NetHost {
// Sends a request to get configured or visible WiFi networks based on the
// |configured_only| and |visible_only| flags.
- GetNetworks@0(bool configured_only, bool visible_only) => (NetworkData data);
+ GetNetworksDeprecated@0(bool configured_only, bool visible_only) => (NetworkData data);
// Sends a request to get enabled / disabled status of WiFi.
GetWifiEnabledState@1() => (bool is_enabled);
// Sends a request to start scan of WiFi APs.
[MinVersion=1] StartScan@2();
+
+ // Sends a request to get configured or visible WiFi networks based on the
+ // request type.
+ [MinVersion=2] GetNetworks@3(GetNetworksRequestType type) => (NetworkData data);
};
interface NetInstance {
« 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