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

Unified Diff: chromeos/network/onc/onc_translation_tables.h

Issue 482243002: Use Managed properties for Preferred and Provider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/network/onc/onc_signature.cc ('k') | chromeos/network/onc/onc_translation_tables.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/onc/onc_translation_tables.h
diff --git a/chromeos/network/onc/onc_translation_tables.h b/chromeos/network/onc/onc_translation_tables.h
index 4563b66d75d65d34e92c384351d763e8848d2d47..1053f372beb6aa0c4c18c7c9dd6eb75b765de1f4 100644
--- a/chromeos/network/onc/onc_translation_tables.h
+++ b/chromeos/network/onc/onc_translation_tables.h
@@ -8,6 +8,7 @@
#include <string>
#include <vector>
+#include "chromeos/chromeos_export.h"
#include "chromeos/network/onc/onc_signature.h"
namespace chromeos {
@@ -25,12 +26,12 @@ struct StringTranslationEntry {
// These tables contain the mapping from ONC strings to Shill strings.
// These are NULL-terminated arrays.
-extern const StringTranslationEntry kNetworkTypeTable[];
-extern const StringTranslationEntry kVPNTypeTable[];
-extern const StringTranslationEntry kWiFiSecurityTable[];
-extern const StringTranslationEntry kEAPOuterTable[];
-extern const StringTranslationEntry kEAP_PEAP_InnerTable[];
-extern const StringTranslationEntry kEAP_TTLS_InnerTable[];
+CHROMEOS_EXPORT extern const StringTranslationEntry kNetworkTypeTable[];
+CHROMEOS_EXPORT extern const StringTranslationEntry kVPNTypeTable[];
+CHROMEOS_EXPORT extern const StringTranslationEntry kWiFiSecurityTable[];
+CHROMEOS_EXPORT extern const StringTranslationEntry kEAPOuterTable[];
+CHROMEOS_EXPORT extern const StringTranslationEntry kEAP_PEAP_InnerTable[];
+CHROMEOS_EXPORT extern const StringTranslationEntry kEAP_TTLS_InnerTable[];
// A separate translation table for cellular properties that are stored in a
// Shill Device instead of a Service. The |shill_property_name| entries
@@ -48,14 +49,15 @@ bool GetShillPropertyName(const std::string& onc_field_name,
std::string* shill_property_name);
// Translate individual strings to Shill using the above tables.
-bool TranslateStringToShill(const StringTranslationEntry table[],
- const std::string& onc_value,
- std::string* shill_value);
+CHROMEOS_EXPORT bool TranslateStringToShill(
+ const StringTranslationEntry table[],
+ const std::string& onc_value,
+ std::string* shill_value);
// Translate individual strings to ONC using the above tables.
-bool TranslateStringToONC(const StringTranslationEntry table[],
- const std::string& shill_value,
- std::string* onc_value);
+CHROMEOS_EXPORT bool TranslateStringToONC(const StringTranslationEntry table[],
+ const std::string& shill_value,
+ std::string* onc_value);
} // namespace onc
} // namespace chromeos
« no previous file with comments | « chromeos/network/onc/onc_signature.cc ('k') | chromeos/network/onc/onc_translation_tables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698