Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: chromeos/network/onc/onc_translation_tables.h

Issue 1033843003: Add NetworkTechnology types to ONC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chromeos/network/onc/onc_translation_tables.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chromeos/network/onc/onc_translation_tables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698