OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_COMMON_JSON_SCHEMA_VALIDATOR_H_ | 5 #ifndef CHROME_COMMON_JSON_SCHEMA_VALIDATOR_H_ |
6 #define CHROME_COMMON_JSON_SCHEMA_VALIDATOR_H_ | 6 #define CHROME_COMMON_JSON_SCHEMA_VALIDATOR_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 | 13 |
14 namespace base { | 14 namespace base { |
15 class DictionaryValue; | 15 class DictionaryValue; |
16 class FundamentalValue; | |
17 class ListValue; | 16 class ListValue; |
18 class StringValue; | 17 class StringValue; |
19 class Value; | 18 class Value; |
20 } | 19 } |
21 | 20 |
22 //============================================================================== | 21 //============================================================================== |
23 // This class implements a subset of JSON Schema. | 22 // This class implements a subset of JSON Schema. |
24 // See: http://www.json.com/json-schema-proposal/ for more details. | 23 // See: http://www.json.com/json-schema-proposal/ for more details. |
25 // | 24 // |
26 // There is also an older JavaScript implementation of the same functionality in | 25 // There is also an older JavaScript implementation of the same functionality in |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 bool default_allow_additional_properties_; | 209 bool default_allow_additional_properties_; |
211 | 210 |
212 // Errors accumulated since the last call to Validate(). | 211 // Errors accumulated since the last call to Validate(). |
213 std::vector<Error> errors_; | 212 std::vector<Error> errors_; |
214 | 213 |
215 | 214 |
216 DISALLOW_COPY_AND_ASSIGN(JSONSchemaValidator); | 215 DISALLOW_COPY_AND_ASSIGN(JSONSchemaValidator); |
217 }; | 216 }; |
218 | 217 |
219 #endif // CHROME_COMMON_JSON_SCHEMA_VALIDATOR_H_ | 218 #endif // CHROME_COMMON_JSON_SCHEMA_VALIDATOR_H_ |
OLD | NEW |