Index: components/network_configuration/wifi_security_class.h |
diff --git a/components/network_configuration/wifi_security_class.h b/components/network_configuration/wifi_security_class.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..78423e6a5079a2dd32705c397ddeadfdfca382a3 |
--- /dev/null |
+++ b/components/network_configuration/wifi_security_class.h |
@@ -0,0 +1,28 @@ |
+// 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.
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef COMPONENTS_NETWORK_CONFIGURATION_WIFI_SECURITY_CLASS_H_ |
+#define COMPONENTS_NETWORK_CONFIGURATION_WIFI_SECURITY_CLASS_H_ |
+ |
+#include <string> |
+ |
+namespace network_configuration { |
+ |
+enum WifiSecurityClass { |
+ SECURITY_CLASS_INVALID, |
+ SECURITY_CLASS_NONE, |
+ SECURITY_CLASS_WEP, |
+ SECURITY_CLASS_PSK, // WPA-PSK or RSN-PSK |
+ SECURITY_CLASS_802_1X, // WPA-Enterprise or RSN-Enterprise |
+}; |
+ |
+WifiSecurityClass WifiSecurityClassFromShillString( |
+ const std::string& security_class_in); |
+ |
+bool WifiSecurityClassToShillString( |
+ 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.
|
+ |
+} // namespace network_configuration |
+ |
+#endif // COMPONENTS_NETWORK_CONFIGURATION_WIFI_SECURITY_CLASS_H_ |