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

Unified Diff: content/renderer/v8_value_converter_impl.cc

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
Index: content/renderer/v8_value_converter_impl.cc
diff --git a/content/renderer/v8_value_converter_impl.cc b/content/renderer/v8_value_converter_impl.cc
index c457377f9df870ac83a7bc98f44d08623947a0ae..4745d0698346a52e1b19f618307b01049b541e4b 100644
--- a/content/renderer/v8_value_converter_impl.cc
+++ b/content/renderer/v8_value_converter_impl.cc
@@ -34,6 +34,31 @@ V8ValueConverterImpl::V8ValueConverterImpl()
allow_regexp_(false) {
}
+
+bool V8ValueConverterImpl::IsAllowIndefined() const {
+ return allow_undefined_;
+}
+
+void V8ValueConverterImpl::SetAllowUndefined(bool val) {
+ allow_undefined_ = val;
+}
+
+bool V8ValueConverterImpl::IsAllowDate() const {
+ return allow_date_;
+}
+
+void V8ValueConverterImpl::SetAllowDate(bool val) {
+ allow_date_ = val;
+}
+
+bool V8ValueConverterImpl::IsAllowRegexp() const {
+ return allow_regexp_;
+}
+
+void V8ValueConverterImpl::SetAllowRegexp(bool val) {
+ allow_regexp_ = val;
+}
+
v8::Handle<v8::Value> V8ValueConverterImpl::ToV8Value(
const Value* value, v8::Handle<v8::Context> context) const {
v8::Context::Scope context_scope(context);

Powered by Google App Engine
This is Rietveld 408576698