| 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 const PrefService* profile_prefs, | 199 const PrefService* profile_prefs, |
| 200 const PrefService* local_state_prefs, | 200 const PrefService* local_state_prefs, |
| 201 const NetworkState& network, | 201 const NetworkState& network, |
| 202 ::onc::ONCSource* onc_source); | 202 ::onc::ONCSource* onc_source); |
| 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 // Returns whether |dict| is a Shill dictionary corresponding to a Tether |
| 210 // network. |
| 211 CHROMEOS_EXPORT bool IsTetherShillDictionary(const base::DictionaryValue& dict); |
| 212 |
| 213 // Returns whether |dict| is an ONC dictionary corresponding to a Tether |
| 214 // network. |
| 215 CHROMEOS_EXPORT bool IsTetherOncDictionary(const base::DictionaryValue& dict); |
| 216 |
| 209 } // namespace onc | 217 } // namespace onc |
| 210 } // namespace chromeos | 218 } // namespace chromeos |
| 211 | 219 |
| 212 #endif // CHROMEOS_NETWORK_ONC_ONC_UTILS_H_ | 220 #endif // CHROMEOS_NETWORK_ONC_ONC_UTILS_H_ |
| OLD | NEW |