| Index: extensions/renderer/argument_spec.h
|
| diff --git a/extensions/renderer/argument_spec.h b/extensions/renderer/argument_spec.h
|
| index 0d517731342668a2d2e960cb61cc491aa527bc62..117b775f1881a6d5827be0ccd3954ffce6d3e198 100644
|
| --- a/extensions/renderer/argument_spec.h
|
| +++ b/extensions/renderer/argument_spec.h
|
| @@ -50,6 +50,12 @@ class ArgumentSpec {
|
| explicit ArgumentSpec(ArgumentType type);
|
| ~ArgumentSpec();
|
|
|
| + // Returns true if the given |value| is of the correct type to match this
|
| + // spec. If it is not, populates |error|.
|
| + bool IsCorrectType(v8::Local<v8::Value> value,
|
| + const APITypeReferenceMap& refs,
|
| + std::string* error) const;
|
| +
|
| // Returns true if the passed |value| matches this specification. If
|
| // |out_value| is non-null, converts the value to a base::Value and populates
|
| // |out_value|. Otherwise, no conversion is performed.
|
| @@ -93,9 +99,6 @@ class ArgumentSpec {
|
| // Initializes this object according to |type_string| and |dict|.
|
| void InitializeType(const base::DictionaryValue* dict);
|
|
|
| - // Returns true if this argument refers to a fundamental type.
|
| - bool IsFundamentalType() const;
|
| -
|
| // Conversion functions. These should only be used if the spec is of the given
|
| // type (otherwise, they will DCHECK).
|
| bool ParseArgumentToFundamental(v8::Local<v8::Context> context,
|
|
|