| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 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 CHROME_BROWSER_CHROMEOS_NETWORK_SETTINGS_ONC_SIGNATURE_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_NETWORK_SETTINGS_ONC_SIGNATURE_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/values.h" | |
| 11 | |
| 12 namespace chromeos { | |
| 13 namespace onc { | |
| 14 | |
| 15 struct OncValueSignature; | |
| 16 | |
| 17 struct OncFieldSignature { | |
| 18 const char* onc_field_name; | |
| 19 const char* shill_property_name; | |
| 20 const OncValueSignature* value_signature; | |
| 21 }; | |
| 22 | |
| 23 struct OncValueSignature { | |
| 24 base::Value::Type onc_type; | |
| 25 const OncFieldSignature* fields; | |
| 26 const OncValueSignature* onc_array_entry_signature; | |
| 27 }; | |
| 28 | |
| 29 const OncFieldSignature* GetFieldSignature(const OncValueSignature& signature, | |
| 30 const std::string& onc_field_name); | |
| 31 | |
| 32 extern const OncValueSignature kRecommendedSignature; | |
| 33 extern const OncValueSignature kEAPSignature; | |
| 34 extern const OncValueSignature kIssuerSubjectPatternSignature; | |
| 35 extern const OncValueSignature kCertificatePatternSignature; | |
| 36 extern const OncValueSignature kIPsecSignature; | |
| 37 extern const OncValueSignature kL2TPSignature; | |
| 38 extern const OncValueSignature kOpenVPNSignature; | |
| 39 extern const OncValueSignature kVPNSignature; | |
| 40 extern const OncValueSignature kEthernetSignature; | |
| 41 extern const OncValueSignature kIPConfigSignature; | |
| 42 extern const OncValueSignature kProxyLocationSignature; | |
| 43 extern const OncValueSignature kProxyManualSignature; | |
| 44 extern const OncValueSignature kProxySettingsSignature; | |
| 45 extern const OncValueSignature kWiFiSignature; | |
| 46 extern const OncValueSignature kCertificateSignature; | |
| 47 extern const OncValueSignature kNetworkConfigurationSignature; | |
| 48 extern const OncValueSignature kUnencryptedConfigurationSignature; | |
| 49 | |
| 50 } // namespace onc | |
| 51 } // namespace chromeos | |
| 52 | |
| 53 #endif // CHROME_BROWSER_CHROMEOS_NETWORK_SETTINGS_ONC_SIGNATURE_H_ | |
| OLD | NEW |