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

Side by Side Diff: chrome/common/json_schema_validator.h

Issue 7259019: Move base/values.h into the base namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 class DictionaryValue; 15 class DictionaryValue;
15 class FundamentalValue; 16 class FundamentalValue;
16 class ListValue; 17 class ListValue;
17 class StringValue; 18 class StringValue;
18 class Value; 19 class Value;
20 }
21
22 using base::DictionaryValue;
23 using base::FundamentalValue;
24 using base::ListValue;
25 using base::StringValue;
26 using base::Value;
19 27
20 //============================================================================== 28 //==============================================================================
21 // This class implements a subset of JSON Schema. 29 // This class implements a subset of JSON Schema.
22 // See: http://www.json.com/json-schema-proposal/ for more details. 30 // See: http://www.json.com/json-schema-proposal/ for more details.
23 // 31 //
24 // There is also an older JavaScript implementation of the same functionality in 32 // There is also an older JavaScript implementation of the same functionality in
25 // chrome/renderer/resources/json_schema.js. 33 // chrome/renderer/resources/json_schema.js.
26 // 34 //
27 // The following features of JSON Schema are not implemented: 35 // The following features of JSON Schema are not implemented:
28 // - requires 36 // - requires
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 bool default_allow_additional_properties_; 212 bool default_allow_additional_properties_;
205 213
206 // Errors accumulated since the last call to Validate(). 214 // Errors accumulated since the last call to Validate().
207 std::vector<Error> errors_; 215 std::vector<Error> errors_;
208 216
209 217
210 DISALLOW_COPY_AND_ASSIGN(JSONSchemaValidator); 218 DISALLOW_COPY_AND_ASSIGN(JSONSchemaValidator);
211 }; 219 };
212 220
213 #endif // CHROME_COMMON_JSON_SCHEMA_VALIDATOR_H_ 221 #endif // CHROME_COMMON_JSON_SCHEMA_VALIDATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698