Parse UI meta data for policy-configured networks directly from ONC dictionary.
BUG=chromium-os:19411
TEST=Confrigure a network through policy. Check whether recommended settings show up properly in the UI.
Review URL: http://codereview.chromium.org/8918025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114915 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/chromeos/cros/onc_constants.cc b/chrome/browser/chromeos/cros/onc_constants.cc
new file mode 100644
index 0000000..27eb527
--- /dev/null
+++ b/chrome/browser/chromeos/cros/onc_constants.cc
@@ -0,0 +1,85 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/chromeos/cros/onc_constants.h"
+
+namespace chromeos {
+
+// Constants for ONC properties.
+namespace onc {
+
+const char kGUID[] = "GUID";
+const char kName[] = "Name";
+const char kRemove[] = "Remove";
+const char kType[] = "Type";
+const char kVPN[] = "VPN";
+const char kWiFi[] = "WiFi";
+
+namespace wifi {
+const char kAutoConnect[] = "AutoConnect";
+const char kEAP[] = "EAP";
+const char kHiddenSSID[] = "HiddenSSID";
+const char kPassphrase[] = "Passphrase";
+const char kProxyURL[] = "ProxyURL";
+const char kSSID[] = "SSID";
+const char kSecurity[] = "Security";
+} // namespace wifi
+
+namespace eap {
+const char kAnonymousIdentity[] = "AnonymousIdentity";
+const char kClientCertPattern[] = "ClientCertPattern";
+const char kClientCertRef[] = "ClientCertRef";
+const char kClientCertType[] = "ClientCertType";
+const char kIdentity[] = "Identity";
+const char kInner[] = "Inner";
+const char kOuter[] = "Outer";
+const char kPassword[] = "Password";
+const char kSaveCredentials[] = "SaveCredentials";
+const char kServerCARef[] = "ServerCARef";
+const char kUseSystemCAs[] = "UseSystemCAs";
+} // namespace eap
+
+namespace vpn {
+const char kAuthNoCache[] = "AuthNoCache";
+const char kAuthRetry[] = "AuthRetry";
+const char kAuth[] = "Auth";
+const char kAuthenticationType[] = "AuthenticationType";
+const char kCipher[] = "Cipher";
+const char kClientCertPattern[] = "ClientCertPattern";
+const char kClientCertRef[] = "ClientCertRef";
+const char kClientCertType[] = "ClientCertType";
+const char kCompLZO[] = "CompLZO";
+const char kCompNoAdapt[] = "CompNoAdapt";
+const char kGroup[] = "Group";
+const char kHost[] = "Host";
+const char kIKEVersion[] = "IKEVersion";
+const char kIPsec[] = "IPsec";
+const char kKeyDirection[] = "KeyDirection";
+const char kL2TP[] = "L2TP";
+const char kNsCertType[] = "NsCertType";
+const char kOpenVPN[] = "OpenVPN";
+const char kPSK[] = "PSK";
+const char kPassword[] = "Password";
+const char kPort[] = "Port";
+const char kProto[] = "Proto";
+const char kPushPeerInfo[] = "PushPeerInfo";
+const char kRemoteCertEKU[] = "RemoteCertEKU";
+const char kRemoteCertKU[] = "RemoteCertKU";
+const char kRemoteCertTLS[] = "RemoteCertTLS";
+const char kRenegSec[] = "RenegSec";
+const char kSaveCredentials[] = "SaveCredentials";
+const char kServerCARef[] = "ServerCARef";
+const char kServerCertRef[] = "ServerCertRef";
+const char kServerPollTimeout[] = "ServerPollTimeout";
+const char kShaper[] = "Shaper";
+const char kStaticChallenge[] = "StaticChallenge";
+const char kTLSAuthContents[] = "TLSAuthContents";
+const char kTLSRemote[] = "TLSRemote";
+const char kType[] = "Type";
+const char kUsername[] = "Username";
+} // namespace vpn
+
+} // namespace onc
+
+} // namespace chromeos