| Index: chrome/common/json_schema_validator.h
|
| diff --git a/chrome/common/json_schema_validator.h b/chrome/common/json_schema_validator.h
|
| index 1f3717e7e4a21516252b377a44ac11d7960c07af..20ecfbd5305d3b90b940378e79366df2e6e3311f 100644
|
| --- a/chrome/common/json_schema_validator.h
|
| +++ b/chrome/common/json_schema_validator.h
|
| @@ -10,13 +10,7 @@
|
| #include <vector>
|
|
|
| #include "base/basictypes.h"
|
| -
|
| -namespace base {
|
| -class DictionaryValue;
|
| -class ListValue;
|
| -class StringValue;
|
| -class Value;
|
| -}
|
| +#include "base/values.h"
|
|
|
| //==============================================================================
|
| // This class implements a subset of JSON Schema.
|
| @@ -88,6 +82,11 @@ class JSONSchemaValidator {
|
| // Classifies a Value as one of the JSON schema primitive types.
|
| static std::string GetJSONSchemaType(base::Value* value);
|
|
|
| + // If |schema_type| is a valid JSON schema type then |value_type| is assigned
|
| + // the corresponding Value type and returns true. Otherwise returns false.
|
| + static bool GetValueType(const std::string& schema_type,
|
| + base::Value::Type* value_type);
|
| +
|
| // Utility methods to format error messages. The first method can have one
|
| // wildcard represented by '*', which is replaced with s1. The second method
|
| // can have two, which are replaced by s1 and s2.
|
|
|