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