OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 module arc; | 5 module arc; |
6 | 6 |
| 7 [Extensible=True] |
7 enum NetworkResult { | 8 enum NetworkResult { |
8 SUCCESS = 0, | 9 SUCCESS = 0, |
9 FAILURE = 1, | 10 FAILURE = 1, |
10 }; | 11 }; |
11 | 12 |
12 struct WifiConfiguration { | 13 struct WifiConfiguration { |
13 // These correspond to ONC properties returned by | 14 // These correspond to ONC properties returned by |
14 // chrome.networkingPrivate.getNetworks(). | 15 // chrome.networkingPrivate.getNetworks(). |
15 // See components/onc/docs/onc_spec.html | 16 // See components/onc/docs/onc_spec.html |
16 string ssid; | 17 string ssid; |
(...skipping 11 matching lines...) Expand all Loading... |
28 interface NetHost { | 29 interface NetHost { |
29 // Sends a request to get configured or visible WiFi networks based on the | 30 // Sends a request to get configured or visible WiFi networks based on the |
30 // |configured_only| and |visible_only| flags. | 31 // |configured_only| and |visible_only| flags. |
31 GetNetworks@0(bool configured_only, bool visible_only) => (NetworkData data); | 32 GetNetworks@0(bool configured_only, bool visible_only) => (NetworkData data); |
32 }; | 33 }; |
33 | 34 |
34 interface NetInstance { | 35 interface NetInstance { |
35 // Establishes full-duplex communication with the host. | 36 // Establishes full-duplex communication with the host. |
36 Init@0(NetHost host_ptr); | 37 Init@0(NetHost host_ptr); |
37 }; | 38 }; |
OLD | NEW |