| 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 14 matching lines...) Expand all Loading... |
| 25 }; | 25 }; |
| 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[]; |
| 36 CHROMEOS_EXPORT extern const StringTranslationEntry kRoamingStateTable[]; |
| 35 | 37 |
| 36 // A separate translation table for cellular properties that are stored in a | 38 // A separate translation table for cellular properties that are stored in a |
| 37 // Shill Device instead of a Service. The |shill_property_name| entries | 39 // Shill Device instead of a Service. The |shill_property_name| entries |
| 38 // reference Device properties, not Service properties. | 40 // reference Device properties, not Service properties. |
| 39 extern const FieldTranslationEntry kCellularDeviceTable[]; | 41 extern const FieldTranslationEntry kCellularDeviceTable[]; |
| 40 | 42 |
| 41 const FieldTranslationEntry* GetFieldTranslationTable( | 43 const FieldTranslationEntry* GetFieldTranslationTable( |
| 42 const OncValueSignature& onc_signature); | 44 const OncValueSignature& onc_signature); |
| 43 | 45 |
| 44 std::vector<std::string> GetPathToNestedShillDictionary( | 46 std::vector<std::string> GetPathToNestedShillDictionary( |
| (...skipping 11 matching lines...) Expand all Loading... |
| 56 | 58 |
| 57 // Translate individual strings to ONC using the above tables. | 59 // Translate individual strings to ONC using the above tables. |
| 58 CHROMEOS_EXPORT bool TranslateStringToONC(const StringTranslationEntry table[], | 60 CHROMEOS_EXPORT bool TranslateStringToONC(const StringTranslationEntry table[], |
| 59 const std::string& shill_value, | 61 const std::string& shill_value, |
| 60 std::string* onc_value); | 62 std::string* onc_value); |
| 61 | 63 |
| 62 } // namespace onc | 64 } // namespace onc |
| 63 } // namespace chromeos | 65 } // namespace chromeos |
| 64 | 66 |
| 65 #endif // CHROMEOS_NETWORK_ONC_ONC_TRANSLATION_TABLES_H_ | 67 #endif // CHROMEOS_NETWORK_ONC_ONC_TRANSLATION_TABLES_H_ |
| OLD | NEW |