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

Unified Diff: content/public/renderer/v8_value_converter.h

Issue 10387055: Support optional arguments in SendRequestNatives::StartRequest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated copyright header Created 8 years, 7 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 | « chrome/renderer/extensions/send_request_natives.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/v8_value_converter.h
diff --git a/content/public/renderer/v8_value_converter.h b/content/public/renderer/v8_value_converter.h
index 6e785c143a070ea4c0d5e5a639380a128b178efc..9506c6703849285954d593c307111844f4c6b52b 100644
--- a/content/public/renderer/v8_value_converter.h
+++ b/content/public/renderer/v8_value_converter.h
@@ -28,6 +28,17 @@ class CONTENT_EXPORT V8ValueConverter {
virtual ~V8ValueConverter() {}
+ // Use the following setters to support additional types other than the
+ // default ones.
+ virtual bool IsAllowIndefined() const = 0;
asargent_no_longer_on_chrome 2012/05/10 20:17:08 Indefined -> Undefined Also, "IsAllow" sounds ver
battre 2012/05/11 12:16:28 Done.
+ virtual void SetAllowUndefined(bool val) = 0;
+
+ virtual bool IsAllowDate() const = 0;
+ virtual void SetAllowDate(bool val) = 0;
+
+ virtual bool IsAllowRegexp() const = 0;
+ virtual void SetAllowRegexp(bool val) = 0;
+
// Converts Value to v8::Value. Unsupported types are replaced with null.
// If an array or object throws while setting a value, that property or item
// is skipped, leaving a hole in the case of arrays.
« no previous file with comments | « chrome/renderer/extensions/send_request_natives.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698