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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module arc;
6
7 enum NetworkResult {
8 SUCCESS = 0,
9 FAILURE = 1,
10 };
11
12 struct WifiConfiguration {
13 string ssid;
14 int32 frequency;
15 int32 signal_strength;
16 string bssid;
17 string security;
18 };
19
20 struct NetworkData {
21 NetworkResult status;
22 array<WifiConfiguration> networks;
23 };
24
25 interface NetHost {
26 // Sends a request to get configured or visible WiFi networks based on the
27 // |configured_only| and |visible_only| flags.
28 OnGetNetworks(int32 request_id, bool configured_only, bool visible_only);
Luis Héctor Chávez 2016/01/12 17:32:32 Is the plan to only send the networks to ARC after
cernekee 2016/01/12 20:14:47 Not sure yet. There is an undocumented API on the
Luis Héctor Chávez 2016/01/12 20:42:28 the C++ code should look like void GetNetworks(bo
29 };
30
31 // TODO(lhchavez): Migrate all request/response messages to Mojo.
32 interface NetInstance {
33 // Establishes full-duplex communication with the host.
34 Init(NetHost host_ptr);
35
36 // Sends the response to a GetNetworks call from ARC with the ARC supplied
37 // |request_id|.
38 SendNetworks(int32 request_id, NetworkData data);
39 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698