Index: content/renderer/pepper/plugin_object.h |
diff --git a/content/renderer/pepper/plugin_object.h b/content/renderer/pepper/plugin_object.h |
index 4dec6205d5830f14d31d0b2a93de95f291716e62..f13fcd3570603872c16a098ca787b9d4a36ad63a 100644 |
--- a/content/renderer/pepper/plugin_object.h |
+++ b/content/renderer/pepper/plugin_object.h |
@@ -12,6 +12,7 @@ |
#include "gin/interceptor.h" |
#include "gin/wrappable.h" |
#include "ppapi/c/pp_var.h" |
+#include "v8/include/v8-util.h" |
struct PPP_Class_Deprecated; |
@@ -75,6 +76,9 @@ class PluginObject : public gin::Wrappable<PluginObject>, |
void Call(const std::string& identifier, gin::Arguments* args); |
+ v8::Local<v8::FunctionTemplate> GetFunctionTemplate(v8::Isolate* isolate, |
+ const std::string& name); |
+ |
PepperPluginInstanceImpl* instance_; |
const PPP_Class_Deprecated* ppp_class_; |
@@ -82,6 +86,8 @@ class PluginObject : public gin::Wrappable<PluginObject>, |
base::WeakPtrFactory<PluginObject> weak_factory_; |
+ v8::StdPersistentValueMap<std::string, v8::FunctionTemplate> template_cache_; |
+ |
DISALLOW_COPY_AND_ASSIGN(PluginObject); |
}; |