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

Unified Diff: extensions/renderer/argument_spec.h

Issue 2837023003: [Extensions Bindings] Add argument parsing errors (Closed)
Patch Set: nits Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/renderer/api_invocation_errors_unittest.cc ('k') | extensions/renderer/argument_spec.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/argument_spec.h
diff --git a/extensions/renderer/argument_spec.h b/extensions/renderer/argument_spec.h
index 66b87a1d5ec9fa91e80567231c1c886ba44619ea..922d99282f99b34f62b1ee3e4c7a41dddfddfe96 100644
--- a/extensions/renderer/argument_spec.h
+++ b/extensions/renderer/argument_spec.h
@@ -113,6 +113,10 @@ class ArgumentSpec {
std::unique_ptr<base::Value>* out_value,
std::string* error) const;
+ // Returns an error message indicating the type of |value| does not match the
+ // expected type.
+ std::string GetInvalidTypeError(v8::Local<v8::Value> value) const;
+
// The name of the argument.
std::string name_;
« no previous file with comments | « extensions/renderer/api_invocation_errors_unittest.cc ('k') | extensions/renderer/argument_spec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698