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

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

Issue 1572483002: Implement OnGetNetworks for net.mojom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: components/arc/common/net.mojom
diff --git a/components/arc/common/net.mojom b/components/arc/common/net.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..c24b36eed5df44be444b99466ce105954b298f06
--- /dev/null
+++ b/components/arc/common/net.mojom
@@ -0,0 +1,39 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module arc;
+
+enum NetworkResult {
+ SUCCESS = 0,
+ FAILURE = 1,
+};
+
+struct WifiConfiguration {
stevenjb 2016/01/12 22:14:04 We should document these properties. Do they corre
Kevin Cernekee 2016/01/12 23:53:27 Done.
hidehiko 2016/01/13 05:58:56 Haven't updated yet?
cernekee 2016/01/14 03:08:58 I'm still working on the new PS as there were ques
+ string ssid;
+ int32 frequency;
+ int32 signal_strength;
+ string bssid;
+ string security;
+};
+
+struct NetworkData {
+ NetworkResult status;
+ array<WifiConfiguration> networks;
+};
+
+interface NetHost {
+ // Sends a request to get configured or visible WiFi networks based on the
+ // |configured_only| and |visible_only| flags.
+ OnGetNetworks(int32 request_id, bool configured_only, bool visible_only);
+};
+
+// TODO(lhchavez): Migrate all request/response messages to Mojo.
+interface NetInstance {
+ // Establishes full-duplex communication with the host.
+ Init(NetHost host_ptr);
+
+ // Sends the response to a GetNetworks call from ARC with the ARC supplied
+ // |request_id|.
+ SendNetworks(int32 request_id, NetworkData data);
+};

Powered by Google App Engine
This is Rietveld 408576698