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

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

Issue 1769083003: ARC: Add network GUID to the metadata that is sent to the Host. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed typo in commit description. Created 4 years, 9 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
« no previous file with comments | « no previous file | components/arc/net/arc_net_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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] 7 [Extensible]
8 enum NetworkResult { 8 enum NetworkResult {
9 SUCCESS = 0, 9 SUCCESS = 0,
10 FAILURE = 1, 10 FAILURE = 1,
11 }; 11 };
12 12
13 [Extensible] 13 [Extensible]
14 enum GetNetworksRequestType { 14 enum GetNetworksRequestType {
15 CONFIGURED_ONLY = 0, 15 CONFIGURED_ONLY = 0,
16 VISIBLE_ONLY = 1, 16 VISIBLE_ONLY = 1,
17 }; 17 };
18 18
19 struct WifiConfiguration { 19 struct WifiConfiguration {
20 // These correspond to ONC properties returned by 20 // These correspond to ONC properties returned by
21 // chrome.networkingPrivate.getNetworks(). 21 // chrome.networkingPrivate.getNetworks().
22 // See components/onc/docs/onc_spec.html 22 // See components/onc/docs/onc_spec.html
23 string ssid; 23 string ssid;
24 int32 frequency; 24 int32 frequency;
25 int32 signal_strength; 25 int32 signal_strength;
26 string bssid; 26 string bssid;
27 string security; 27 string security;
28 [MinVersion=1] string? guid;
28 }; 29 };
29 30
30 struct NetworkData { 31 struct NetworkData {
31 NetworkResult status; 32 NetworkResult status;
32 array<WifiConfiguration> networks; 33 array<WifiConfiguration> networks;
33 }; 34 };
34 35
35 interface NetHost { 36 interface NetHost {
36 // Sends a request to get configured or visible WiFi networks based on the 37 // Sends a request to get configured or visible WiFi networks based on the
37 // |configured_only| and |visible_only| flags. 38 // |configured_only| and |visible_only| flags.
(...skipping 10 matching lines...) Expand all
48 [MinVersion=2] GetNetworks@3(GetNetworksRequestType type) => (NetworkData data ); 49 [MinVersion=2] GetNetworks@3(GetNetworksRequestType type) => (NetworkData data );
49 }; 50 };
50 51
51 interface NetInstance { 52 interface NetInstance {
52 // Establishes full-duplex communication with the host. 53 // Establishes full-duplex communication with the host.
53 Init@0(NetHost host_ptr); 54 Init@0(NetHost host_ptr);
54 55
55 // Notifies the instance of a WiFI AP scan being completed. 56 // Notifies the instance of a WiFI AP scan being completed.
56 [MinVersion=1] ScanCompleted@1(); 57 [MinVersion=1] ScanCompleted@1();
57 }; 58 };
OLDNEW
« no previous file with comments | « no previous file | components/arc/net/arc_net_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698