Chromium Code Reviews| Index: components/arc/common/net.mojom |
| diff --git a/components/arc/common/net.mojom b/components/arc/common/net.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c24b36eed5df44be444b99466ce105954b298f06 |
| --- /dev/null |
| +++ b/components/arc/common/net.mojom |
| @@ -0,0 +1,39 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +module arc; |
| + |
| +enum NetworkResult { |
| + SUCCESS = 0, |
| + FAILURE = 1, |
| +}; |
| + |
| +struct WifiConfiguration { |
| + string ssid; |
| + int32 frequency; |
| + int32 signal_strength; |
| + string bssid; |
| + string security; |
| +}; |
| + |
| +struct NetworkData { |
| + NetworkResult status; |
| + array<WifiConfiguration> networks; |
| +}; |
| + |
| +interface NetHost { |
| + // Sends a request to get configured or visible WiFi networks based on the |
| + // |configured_only| and |visible_only| flags. |
| + 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
|
| +}; |
| + |
| +// TODO(lhchavez): Migrate all request/response messages to Mojo. |
| +interface NetInstance { |
| + // Establishes full-duplex communication with the host. |
| + Init(NetHost host_ptr); |
| + |
| + // Sends the response to a GetNetworks call from ARC with the ARC supplied |
| + // |request_id|. |
| + SendNetworks(int32 request_id, NetworkData data); |
| +}; |