| 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_UTILS_H_ | 5 #ifndef CHROMEOS_NETWORK_ONC_ONC_UTILS_H_ |
| 6 #define CHROMEOS_NETWORK_ONC_ONC_UTILS_H_ | 6 #define CHROMEOS_NETWORK_ONC_ONC_UTILS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 // Translates |onc_proxy_settings|, which must be a valid ONC ProxySettings | 157 // Translates |onc_proxy_settings|, which must be a valid ONC ProxySettings |
| 158 // dictionary, to a ProxyConfig dictionary (see proxy_config_dictionary.h). | 158 // dictionary, to a ProxyConfig dictionary (see proxy_config_dictionary.h). |
| 159 CHROMEOS_EXPORT std::unique_ptr<base::DictionaryValue> | 159 CHROMEOS_EXPORT std::unique_ptr<base::DictionaryValue> |
| 160 ConvertOncProxySettingsToProxyConfig( | 160 ConvertOncProxySettingsToProxyConfig( |
| 161 const base::DictionaryValue& onc_proxy_settings); | 161 const base::DictionaryValue& onc_proxy_settings); |
| 162 | 162 |
| 163 // Translates |proxy_config_value|, which must be a valid ProxyConfig dictionary | 163 // Translates |proxy_config_value|, which must be a valid ProxyConfig dictionary |
| 164 // (see proxy_config_dictionary.h) to an ONC ProxySettings dictionary. | 164 // (see proxy_config_dictionary.h) to an ONC ProxySettings dictionary. |
| 165 CHROMEOS_EXPORT std::unique_ptr<base::DictionaryValue> | 165 CHROMEOS_EXPORT std::unique_ptr<base::DictionaryValue> |
| 166 ConvertProxyConfigToOncProxySettings( | 166 ConvertProxyConfigToOncProxySettings( |
| 167 const base::DictionaryValue& proxy_config_value); | 167 std::unique_ptr<base::DictionaryValue> proxy_config_value); |
| 168 | 168 |
| 169 // Replaces string placeholders in |network_configs|, which must be a list of | 169 // Replaces string placeholders in |network_configs|, which must be a list of |
| 170 // ONC NetworkConfigurations. Currently only user name placeholders are | 170 // ONC NetworkConfigurations. Currently only user name placeholders are |
| 171 // implemented, which are replaced by attributes from |user|. | 171 // implemented, which are replaced by attributes from |user|. |
| 172 CHROMEOS_EXPORT void ExpandStringPlaceholdersInNetworksForUser( | 172 CHROMEOS_EXPORT void ExpandStringPlaceholdersInNetworksForUser( |
| 173 const user_manager::User* user, | 173 const user_manager::User* user, |
| 174 base::ListValue* network_configs); | 174 base::ListValue* network_configs); |
| 175 | 175 |
| 176 CHROMEOS_EXPORT void ImportNetworksForUser( | 176 CHROMEOS_EXPORT void ImportNetworksForUser( |
| 177 const user_manager::User* user, | 177 const user_manager::User* user, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 203 | 203 |
| 204 // Convenience function to check only whether a policy for a network exists. | 204 // Convenience function to check only whether a policy for a network exists. |
| 205 CHROMEOS_EXPORT bool HasPolicyForNetwork(const PrefService* profile_prefs, | 205 CHROMEOS_EXPORT bool HasPolicyForNetwork(const PrefService* profile_prefs, |
| 206 const PrefService* local_state_prefs, | 206 const PrefService* local_state_prefs, |
| 207 const NetworkState& network); | 207 const NetworkState& network); |
| 208 | 208 |
| 209 } // namespace onc | 209 } // namespace onc |
| 210 } // namespace chromeos | 210 } // namespace chromeos |
| 211 | 211 |
| 212 #endif // CHROMEOS_NETWORK_ONC_ONC_UTILS_H_ | 212 #endif // CHROMEOS_NETWORK_ONC_ONC_UTILS_H_ |
| OLD | NEW |