Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1133)

Side by Side Diff: components/arc/common/net.mojom

Issue 1572483002: Implement OnGetNetworks for net.mojom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698