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

Side by Side Diff: chromeos/network/onc/onc_validator.h

Issue 2818593003: [CrOS Tether] Add tether network properties (battery percentage, carrier, and signal strength) to t… (Closed)
Patch Set: Ran git cl format. Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « chromeos/network/onc/onc_utils.cc ('k') | chromeos/network/onc/onc_validator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chromeos/network/onc/onc_utils.cc ('k') | chromeos/network/onc/onc_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698