Index: webkit/glue/plugins/pepper_var.cc |
diff --git a/webkit/glue/plugins/pepper_var.cc b/webkit/glue/plugins/pepper_var.cc |
index db83229fd5e45cf8ff44d0bc1171c0f2d3e301ea..24fa2c37c4c77ecc70a1fcc02ad0d820abf569ea 100644 |
--- a/webkit/glue/plugins/pepper_var.cc |
+++ b/webkit/glue/plugins/pepper_var.cc |
@@ -652,6 +652,10 @@ Var::Var(PluginModule* module) : Resource(module) { |
Var::~Var() { |
} |
+Var* Var::AsVar() { |
+ return this; |
+} |
+ |
// static |
PP_Var Var::NPVariantToPPVar(PluginModule* module, const NPVariant* variant) { |
switch (variant->type) { |
@@ -744,6 +748,10 @@ StringVar::StringVar(PluginModule* module, const char* str, uint32 len) |
StringVar::~StringVar() { |
} |
+StringVar* StringVar::AsStringVar() { |
+ return this; |
+} |
+ |
// static |
PP_Var StringVar::StringToPPVar(PluginModule* module, const std::string& var) { |
return StringToPPVar(module, var.c_str(), var.size()); |
@@ -785,6 +793,10 @@ ObjectVar::~ObjectVar() { |
WebBindings::releaseObject(np_object_); |
} |
+ObjectVar* ObjectVar::AsObjectVar() { |
+ return this; |
+} |
+ |
// static |
PP_Var ObjectVar::NPObjectToPPVar(PluginModule* module, NPObject* object) { |
scoped_refptr<ObjectVar> object_var(module->ObjectVarForNPObject(object)); |