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_VALIDATOR_H_ | 5 #ifndef CHROMEOS_NETWORK_ONC_ONC_VALIDATOR_H_ |
6 #define CHROMEOS_NETWORK_ONC_ONC_VALIDATOR_H_ | 6 #define CHROMEOS_NETWORK_ONC_ONC_VALIDATOR_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 bool ValidateIPsec(base::DictionaryValue* result); | 164 bool ValidateIPsec(base::DictionaryValue* result); |
165 bool ValidateOpenVPN(base::DictionaryValue* result); | 165 bool ValidateOpenVPN(base::DictionaryValue* result); |
166 bool ValidateThirdPartyVPN(base::DictionaryValue* result); | 166 bool ValidateThirdPartyVPN(base::DictionaryValue* result); |
167 bool ValidateVerifyX509(base::DictionaryValue* result); | 167 bool ValidateVerifyX509(base::DictionaryValue* result); |
168 bool ValidateCertificatePattern(base::DictionaryValue* result); | 168 bool ValidateCertificatePattern(base::DictionaryValue* result); |
169 bool ValidateGlobalNetworkConfiguration(base::DictionaryValue* result); | 169 bool ValidateGlobalNetworkConfiguration(base::DictionaryValue* result); |
170 bool ValidateProxySettings(base::DictionaryValue* result); | 170 bool ValidateProxySettings(base::DictionaryValue* result); |
171 bool ValidateProxyLocation(base::DictionaryValue* result); | 171 bool ValidateProxyLocation(base::DictionaryValue* result); |
172 bool ValidateEAP(base::DictionaryValue* result); | 172 bool ValidateEAP(base::DictionaryValue* result); |
173 bool ValidateCertificate(base::DictionaryValue* result); | 173 bool ValidateCertificate(base::DictionaryValue* result); |
| 174 bool ValidateTether(base::DictionaryValue* result); |
174 | 175 |
175 bool IsValidValue(const std::string& field_value, | 176 bool IsValidValue(const std::string& field_value, |
176 const std::vector<const char*>& valid_values); | 177 const std::vector<const char*>& valid_values); |
177 bool FieldExistsAndHasNoValidValue( | 178 bool FieldExistsAndHasNoValidValue( |
178 const base::DictionaryValue& object, | 179 const base::DictionaryValue& object, |
179 const std::string& field_name, | 180 const std::string& field_name, |
180 const std::vector<const char*>& valid_values); | 181 const std::vector<const char*>& valid_values); |
181 | 182 |
182 bool FieldExistsAndIsNotInRange(const base::DictionaryValue& object, | 183 bool FieldExistsAndIsNotInRange(const base::DictionaryValue& object, |
183 const std::string &field_name, | 184 const std::string &field_name, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 // function ValidateAndRepairObject. | 240 // function ValidateAndRepairObject. |
240 bool error_or_warning_found_; | 241 bool error_or_warning_found_; |
241 | 242 |
242 DISALLOW_COPY_AND_ASSIGN(Validator); | 243 DISALLOW_COPY_AND_ASSIGN(Validator); |
243 }; | 244 }; |
244 | 245 |
245 } // namespace onc | 246 } // namespace onc |
246 } // namespace chromeos | 247 } // namespace chromeos |
247 | 248 |
248 #endif // CHROMEOS_NETWORK_ONC_ONC_VALIDATOR_H_ | 249 #endif // CHROMEOS_NETWORK_ONC_ONC_VALIDATOR_H_ |
OLD | NEW |