OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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 #ifndef COMPONENTS_WIFI_SYNC_WIFI_SECURITY_CLASS_H_ | |
6 #define COMPONENTS_WIFI_SYNC_WIFI_SECURITY_CLASS_H_ | |
7 | |
8 #if defined(OS_CHROMEOS) | |
9 #include <string> | |
10 #endif | |
11 | |
12 namespace wifi_sync { | |
13 | |
14 enum WifiSecurityClass { | |
15 SECURITY_CLASS_INVALID, | |
16 SECURITY_CLASS_NONE, | |
17 SECURITY_CLASS_WEP, | |
18 SECURITY_CLASS_PSK, // WPA-PSK or RSN-PSK | |
19 SECURITY_CLASS_802_1X, // WPA-Enterprise or RSN-Enterprise | |
20 }; | |
21 | |
22 #if defined(OS_CHROMEOS) | |
23 // Converts from a SecurityClass string presented by the ChromeOS | |
24 // connection manager ("shill") to a WifiSecurityClass enum. | |
25 // Returns the appropriate enum value. If |security_class_in| is | |
26 // unrecognized, returns SECURITY_CLASS_INVALID. | |
27 WifiSecurityClass WifiSecurityClassFromShillString( | |
stevenjb
2014/12/05 20:28:17
nit: FromShillSecurity or just FromShill
mukesh agrawal
2014/12/05 23:48:11
Done.
| |
28 const std::string& security_class_in); | |
29 #endif // OS_CHROMEOS | |
30 | |
31 } // namespace wifi_sync | |
32 | |
33 #endif // COMPONENTS_WIFI_SYNC_WIFI_SECURITY_CLASS_H_ | |
OLD | NEW |