| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMEOS_NETWORK_ONC_ONC_SIGNATURE_H_ | 5 #ifndef CHROMEOS_NETWORK_ONC_ONC_SIGNATURE_H_ |
| 6 #define CHROMEOS_NETWORK_ONC_ONC_SIGNATURE_H_ | 6 #define CHROMEOS_NETWORK_ONC_ONC_SIGNATURE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 struct CHROMEOS_EXPORT OncValueSignature { | 24 struct CHROMEOS_EXPORT OncValueSignature { |
| 25 base::Value::Type onc_type; | 25 base::Value::Type onc_type; |
| 26 const OncFieldSignature* fields; | 26 const OncFieldSignature* fields; |
| 27 const OncValueSignature* onc_array_entry_signature; | 27 const OncValueSignature* onc_array_entry_signature; |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 CHROMEOS_EXPORT const OncFieldSignature* GetFieldSignature( | 30 CHROMEOS_EXPORT const OncFieldSignature* GetFieldSignature( |
| 31 const OncValueSignature& signature, | 31 const OncValueSignature& signature, |
| 32 const std::string& onc_field_name); | 32 const std::string& onc_field_name); |
| 33 | 33 |
| 34 const OncFieldSignature* GetShillFieldSignature( |
| 35 const OncValueSignature& signature, |
| 36 const std::string& shill_property_name); |
| 37 |
| 34 CHROMEOS_EXPORT extern const OncValueSignature kRecommendedSignature; | 38 CHROMEOS_EXPORT extern const OncValueSignature kRecommendedSignature; |
| 35 CHROMEOS_EXPORT extern const OncValueSignature kEAPSignature; | 39 CHROMEOS_EXPORT extern const OncValueSignature kEAPSignature; |
| 36 CHROMEOS_EXPORT extern const OncValueSignature kIssuerSubjectPatternSignature; | 40 CHROMEOS_EXPORT extern const OncValueSignature kIssuerSubjectPatternSignature; |
| 37 CHROMEOS_EXPORT extern const OncValueSignature kCertificatePatternSignature; | 41 CHROMEOS_EXPORT extern const OncValueSignature kCertificatePatternSignature; |
| 38 CHROMEOS_EXPORT extern const OncValueSignature kIPsecSignature; | 42 CHROMEOS_EXPORT extern const OncValueSignature kIPsecSignature; |
| 39 CHROMEOS_EXPORT extern const OncValueSignature kL2TPSignature; | 43 CHROMEOS_EXPORT extern const OncValueSignature kL2TPSignature; |
| 40 CHROMEOS_EXPORT extern const OncValueSignature kOpenVPNSignature; | 44 CHROMEOS_EXPORT extern const OncValueSignature kOpenVPNSignature; |
| 41 CHROMEOS_EXPORT extern const OncValueSignature kVPNSignature; | 45 CHROMEOS_EXPORT extern const OncValueSignature kVPNSignature; |
| 42 CHROMEOS_EXPORT extern const OncValueSignature kEthernetSignature; | 46 CHROMEOS_EXPORT extern const OncValueSignature kEthernetSignature; |
| 43 CHROMEOS_EXPORT extern const OncValueSignature kIPConfigSignature; | 47 CHROMEOS_EXPORT extern const OncValueSignature kIPConfigSignature; |
| 44 CHROMEOS_EXPORT extern const OncValueSignature kProxyLocationSignature; | 48 CHROMEOS_EXPORT extern const OncValueSignature kProxyLocationSignature; |
| 45 CHROMEOS_EXPORT extern const OncValueSignature kProxyManualSignature; | 49 CHROMEOS_EXPORT extern const OncValueSignature kProxyManualSignature; |
| 46 CHROMEOS_EXPORT extern const OncValueSignature kProxySettingsSignature; | 50 CHROMEOS_EXPORT extern const OncValueSignature kProxySettingsSignature; |
| 47 CHROMEOS_EXPORT extern const OncValueSignature kWiFiSignature; | 51 CHROMEOS_EXPORT extern const OncValueSignature kWiFiSignature; |
| 48 CHROMEOS_EXPORT extern const OncValueSignature kCellularSignature; | 52 CHROMEOS_EXPORT extern const OncValueSignature kCellularSignature; |
| 49 CHROMEOS_EXPORT extern const OncValueSignature kCertificateSignature; | 53 CHROMEOS_EXPORT extern const OncValueSignature kCertificateSignature; |
| 50 CHROMEOS_EXPORT extern const OncValueSignature kNetworkConfigurationSignature; | 54 CHROMEOS_EXPORT extern const OncValueSignature kNetworkConfigurationSignature; |
| 51 CHROMEOS_EXPORT extern const OncValueSignature kCertificateListSignature; | 55 CHROMEOS_EXPORT extern const OncValueSignature kCertificateListSignature; |
| 52 CHROMEOS_EXPORT extern const OncValueSignature | 56 CHROMEOS_EXPORT extern const OncValueSignature |
| 53 kNetworkConfigurationListSignature; | 57 kNetworkConfigurationListSignature; |
| 54 CHROMEOS_EXPORT extern const OncValueSignature kToplevelConfigurationSignature; | 58 CHROMEOS_EXPORT extern const OncValueSignature kToplevelConfigurationSignature; |
| 55 | 59 |
| 56 } // namespace onc | 60 } // namespace onc |
| 57 } // namespace chromeos | 61 } // namespace chromeos |
| 58 | 62 |
| 59 #endif // CHROMEOS_NETWORK_ONC_ONC_SIGNATURE_H_ | 63 #endif // CHROMEOS_NETWORK_ONC_ONC_SIGNATURE_H_ |
| OLD | NEW |