Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / content / renderer / pepper / v8_var_converter.h
index 42ef7a6..e6206cd 100644 (file)
@@ -22,6 +22,8 @@ class ResourceConverter;
 class CONTENT_EXPORT V8VarConverter {
  public:
   explicit V8VarConverter(PP_Instance instance);
+  V8VarConverter(PP_Instance instance, bool object_vars_allowed);
+
   // Constructor for testing.
   V8VarConverter(PP_Instance instance,
                  scoped_ptr<ResourceConverter> resource_converter);
@@ -71,6 +73,11 @@ class CONTENT_EXPORT V8VarConverter {
                            v8::Handle<v8::Context> context,
                            ppapi::ScopedPPVar* result_var);
 
+  PP_Instance instance_;
+
+  // Whether or not to support conversion to PP_VARTYPE_OBJECT.
+  bool object_vars_allowed_;
+
   // The message loop to run the callback to |FromV8Value| from.
   scoped_refptr<base::MessageLoopProxy> message_loop_proxy_;