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 { |
| 13 // These correspond to ONC properties returned by |
| 14 // chrome.networkingPrivate.getNetworks(). |
| 15 // See components/onc/docs/onc_spec.html |
| 16 string ssid; |
| 17 int32 frequency; |
| 18 int32 signal_strength; |
| 19 string bssid; |
| 20 string security; |
| 21 }; |
| 22 |
| 23 struct NetworkData { |
| 24 NetworkResult status; |
| 25 array<WifiConfiguration> networks; |
| 26 }; |
| 27 |
| 28 interface NetHost { |
| 29 // Sends a request to get configured or visible WiFi networks based on the |
| 30 // |configured_only| and |visible_only| flags. |
| 31 GetNetworks(bool configured_only, bool visible_only) => (NetworkData data); |
| 32 }; |
| 33 |
| 34 // TODO(lhchavez): Migrate all request/response messages to Mojo. |
| 35 interface NetInstance { |
| 36 // Establishes full-duplex communication with the host. |
| 37 Init(NetHost host_ptr); |
| 38 }; |
OLD | NEW |