Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
|
stevenjb
2014/10/27 20:25:15
nit: no (c)
mukesh agrawal
2014/10/27 21:31:27
Done.
| |
| 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_NETWORK_CONFIGURATION_WIFI_SECURITY_CLASS_H_ | |
| 6 #define COMPONENTS_NETWORK_CONFIGURATION_WIFI_SECURITY_CLASS_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 namespace network_configuration { | |
| 11 | |
| 12 enum WifiSecurityClass { | |
| 13 SECURITY_CLASS_INVALID, | |
| 14 SECURITY_CLASS_NONE, | |
| 15 SECURITY_CLASS_WEP, | |
| 16 SECURITY_CLASS_PSK, // WPA-PSK or RSN-PSK | |
| 17 SECURITY_CLASS_802_1X, // WPA-Enterprise or RSN-Enterprise | |
| 18 }; | |
| 19 | |
| 20 WifiSecurityClass WifiSecurityClassFromShillString( | |
| 21 const std::string& security_class_in); | |
| 22 | |
| 23 bool WifiSecurityClassToShillString( | |
| 24 WifiSecurityClass security_class_in, std::string* security_class_out); | |
|
stevenjb
2014/10/27 20:25:15
These functions should probably be inside #if defi
mukesh agrawal
2014/10/27 21:31:27
Done.
| |
| 25 | |
| 26 } // namespace network_configuration | |
| 27 | |
| 28 #endif // COMPONENTS_NETWORK_CONFIGURATION_WIFI_SECURITY_CLASS_H_ | |
| OLD | NEW |