Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / chromeos / network / network_util.h
index 99707bd..307f131 100644 (file)
@@ -93,6 +93,7 @@ CHROMEOS_EXPORT bool ParseCellularScanResults(
 
 // Retrieves the ONC state dictionary for |network| using GetStateProperties.
 // This includes properties from the corresponding NetworkState if it exists.
+// Assumed to be called from the primary user profile.
 CHROMEOS_EXPORT scoped_ptr<base::DictionaryValue> TranslateNetworkStateToONC(
     const NetworkState* network);
 
@@ -109,6 +110,10 @@ CHROMEOS_EXPORT scoped_ptr<base::ListValue> TranslateNetworkListToONC(
     int limit,
     bool debugging_properties);
 
+// Returns the Shill type corresponding to ONC |type| or an empty string if
+// there is no match. Only valid for ethernet, wifi, wimax, cellular, and vpn.
+CHROMEOS_EXPORT std::string TranslateONCTypeToShill(const std::string& type);
+
 }  // namespace network_util
 }  // namespace chromeos