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

Side by Side Diff: components/json_schema/json_schema_validator.h

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_JSON_SCHEMA_JSON_SCHEMA_VALIDATOR_H_ 5 #ifndef COMPONENTS_JSON_SCHEMA_JSON_SCHEMA_VALIDATOR_H_
6 #define COMPONENTS_JSON_SCHEMA_JSON_SCHEMA_VALIDATOR_H_ 6 #define COMPONENTS_JSON_SCHEMA_JSON_SCHEMA_VALIDATOR_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 14
15 namespace base { 15 namespace base {
16 class DictionaryValue; 16 class DictionaryValue;
17 class ListValue; 17 class ListValue;
18 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
27 // chrome/renderer/resources/json_schema.js. 26 // chrome/renderer/resources/json_schema.js.
28 // 27 //
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 bool default_allow_additional_properties_; 242 bool default_allow_additional_properties_;
244 243
245 // Errors accumulated since the last call to Validate(). 244 // Errors accumulated since the last call to Validate().
246 std::vector<Error> errors_; 245 std::vector<Error> errors_;
247 246
248 247
249 DISALLOW_COPY_AND_ASSIGN(JSONSchemaValidator); 248 DISALLOW_COPY_AND_ASSIGN(JSONSchemaValidator);
250 }; 249 };
251 250
252 #endif // COMPONENTS_JSON_SCHEMA_JSON_SCHEMA_VALIDATOR_H_ 251 #endif // COMPONENTS_JSON_SCHEMA_JSON_SCHEMA_VALIDATOR_H_
OLDNEW
« no previous file with comments | « components/invalidation/public/invalidation.h ('k') | components/leveldb/leveldb_database_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698