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

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

Issue 1228543002: Translate ONC ProxySettings <-> Shill ProxyConfig (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix assumptions in ShillToONC Created 5 years, 5 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
Index: chromeos/network/onc/onc_utils.h
diff --git a/chromeos/network/onc/onc_utils.h b/chromeos/network/onc/onc_utils.h
index 0e2122efdd68a00a30c032dbe5f84fead16ee26b..6a56e96406382210c7ff0c8aa0a344d3ad7e7d2e 100644
--- a/chromeos/network/onc/onc_utils.h
+++ b/chromeos/network/onc/onc_utils.h
@@ -145,6 +145,18 @@ CHROMEOS_EXPORT NetworkTypePattern NetworkTypePatternFromOncType(
CHROMEOS_EXPORT bool IsRecommendedValue(const base::DictionaryValue* onc,
const std::string& property_key);
+// Translates |onc_proxy_settings|, which must be a valid ONC ProxySettings
+// dictionary, to a ProxyConfig dictionary (see proxy_config_dictionary.h).
+CHROMEOS_EXPORT scoped_ptr<base::DictionaryValue>
+ConvertOncProxySettingsToProxyConfig(
+ const base::DictionaryValue& onc_proxy_settings);
+
+// Translates |proxy_config_value|, which must be a valid ProxyConfig dictionary
+// (see proxy_config_dictionary.h) to an ONC ProxySettings dictionary.
+CHROMEOS_EXPORT scoped_ptr<base::DictionaryValue>
+ConvertProxyConfigToOncProxySettings(
+ const base::DictionaryValue& proxy_config_value);
+
} // namespace onc
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698