OLD | NEW |
---|---|
(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 { | |
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
| |
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); | |
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 }; | |
OLD | NEW |