| 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_TRANSLATION_TABLES_H_ | 5 #ifndef CHROMEOS_NETWORK_ONC_ONC_TRANSLATION_TABLES_H_ |
| 6 #define CHROMEOS_NETWORK_ONC_ONC_TRANSLATION_TABLES_H_ | 6 #define CHROMEOS_NETWORK_ONC_ONC_TRANSLATION_TABLES_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 // These tables contain the mapping from ONC strings to Shill strings. | 27 // These tables contain the mapping from ONC strings to Shill strings. |
| 28 // These are NULL-terminated arrays. | 28 // These are NULL-terminated arrays. |
| 29 CHROMEOS_EXPORT extern const StringTranslationEntry kNetworkTypeTable[]; | 29 CHROMEOS_EXPORT extern const StringTranslationEntry kNetworkTypeTable[]; |
| 30 CHROMEOS_EXPORT extern const StringTranslationEntry kVPNTypeTable[]; | 30 CHROMEOS_EXPORT extern const StringTranslationEntry kVPNTypeTable[]; |
| 31 CHROMEOS_EXPORT extern const StringTranslationEntry kWiFiSecurityTable[]; | 31 CHROMEOS_EXPORT extern const StringTranslationEntry kWiFiSecurityTable[]; |
| 32 CHROMEOS_EXPORT extern const StringTranslationEntry kEAPOuterTable[]; | 32 CHROMEOS_EXPORT extern const StringTranslationEntry kEAPOuterTable[]; |
| 33 CHROMEOS_EXPORT extern const StringTranslationEntry kEAP_PEAP_InnerTable[]; | 33 CHROMEOS_EXPORT extern const StringTranslationEntry kEAP_PEAP_InnerTable[]; |
| 34 CHROMEOS_EXPORT extern const StringTranslationEntry kEAP_TTLS_InnerTable[]; | 34 CHROMEOS_EXPORT extern const StringTranslationEntry kEAP_TTLS_InnerTable[]; |
| 35 CHROMEOS_EXPORT extern const StringTranslationEntry kActivationStateTable[]; | 35 CHROMEOS_EXPORT extern const StringTranslationEntry kActivationStateTable[]; |
| 36 CHROMEOS_EXPORT extern const StringTranslationEntry kNetworkTechnologyTable[]; |
| 36 CHROMEOS_EXPORT extern const StringTranslationEntry kRoamingStateTable[]; | 37 CHROMEOS_EXPORT extern const StringTranslationEntry kRoamingStateTable[]; |
| 37 | 38 |
| 38 // A separate translation table for cellular properties that are stored in a | 39 // A separate translation table for cellular properties that are stored in a |
| 39 // Shill Device instead of a Service. The |shill_property_name| entries | 40 // Shill Device instead of a Service. The |shill_property_name| entries |
| 40 // reference Device properties, not Service properties. | 41 // reference Device properties, not Service properties. |
| 41 extern const FieldTranslationEntry kCellularDeviceTable[]; | 42 extern const FieldTranslationEntry kCellularDeviceTable[]; |
| 42 | 43 |
| 43 const FieldTranslationEntry* GetFieldTranslationTable( | 44 const FieldTranslationEntry* GetFieldTranslationTable( |
| 44 const OncValueSignature& onc_signature); | 45 const OncValueSignature& onc_signature); |
| 45 | 46 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 62 | 63 |
| 63 // Translate individual strings to ONC using the above tables. | 64 // Translate individual strings to ONC using the above tables. |
| 64 CHROMEOS_EXPORT bool TranslateStringToONC(const StringTranslationEntry table[], | 65 CHROMEOS_EXPORT bool TranslateStringToONC(const StringTranslationEntry table[], |
| 65 const std::string& shill_value, | 66 const std::string& shill_value, |
| 66 std::string* onc_value); | 67 std::string* onc_value); |
| 67 | 68 |
| 68 } // namespace onc | 69 } // namespace onc |
| 69 } // namespace chromeos | 70 } // namespace chromeos |
| 70 | 71 |
| 71 #endif // CHROMEOS_NETWORK_ONC_ONC_TRANSLATION_TABLES_H_ | 72 #endif // CHROMEOS_NETWORK_ONC_ONC_TRANSLATION_TABLES_H_ |
| OLD | NEW |