Chromium Code Reviews| 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 <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 123 // encoding. Returns true if all references could be resolved. |network_config| | 123 // encoding. Returns true if all references could be resolved. |network_config| |
| 124 // must be a ONC NetworkConfiguration. | 124 // must be a ONC NetworkConfiguration. |
| 125 CHROMEOS_EXPORT bool ResolveServerCertRefsInNetwork( | 125 CHROMEOS_EXPORT bool ResolveServerCertRefsInNetwork( |
| 126 const CertPEMsByGUIDMap& certs_by_guid, | 126 const CertPEMsByGUIDMap& certs_by_guid, |
| 127 base::DictionaryValue* network_config); | 127 base::DictionaryValue* network_config); |
| 128 | 128 |
| 129 // Returns a network type pattern for matching the ONC type string. | 129 // Returns a network type pattern for matching the ONC type string. |
| 130 CHROMEOS_EXPORT NetworkTypePattern NetworkTypePatternFromOncType( | 130 CHROMEOS_EXPORT NetworkTypePattern NetworkTypePatternFromOncType( |
| 131 const std::string& type); | 131 const std::string& type); |
| 132 | 132 |
| 133 // Returns true if |property_key| is a recommended value in the ONC dictionary. | |
|
pneubeck (no reviews)
2014/08/04 10:14:30
This should also mention that |property_key| is ac
| |
| 134 CHROMEOS_EXPORT bool IsRecommendedValue(const base::DictionaryValue* onc, | |
| 135 const std::string& property_key); | |
| 136 | |
| 133 } // namespace onc | 137 } // namespace onc |
| 134 } // namespace chromeos | 138 } // namespace chromeos |
| 135 | 139 |
| 136 #endif // CHROMEOS_NETWORK_ONC_ONC_UTILS_H_ | 140 #endif // CHROMEOS_NETWORK_ONC_ONC_UTILS_H_ |
| OLD | NEW |