summaryrefslogtreecommitdiffstats
path: root/webkit/glue/plugins/pepper_plugin_module.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/plugins/pepper_plugin_module.h')
-rw-r--r--webkit/glue/plugins/pepper_plugin_module.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/webkit/glue/plugins/pepper_plugin_module.h b/webkit/glue/plugins/pepper_plugin_module.h
index edb9e12..4ac13c3 100644
--- a/webkit/glue/plugins/pepper_plugin_module.h
+++ b/webkit/glue/plugins/pepper_plugin_module.h
@@ -61,6 +61,9 @@ class PluginModule : public base::RefCounted<PluginModule>,
PP_Module pp_module() const { return pp_module_; }
+ void set_name(const std::string& name) { name_ = name; }
+ const std::string& name() const { return name_; }
+
PluginInstance* CreateInstance(PluginDelegate* delegate);
// Returns "some" plugin instance associated with this module. This is not
@@ -115,6 +118,9 @@ class PluginModule : public base::RefCounted<PluginModule>,
// implementation.
EntryPoints entry_points_;
+ // The name of the module.
+ std::string name_;
+
// Non-owning pointers to all instances associated with this module. When
// there are no more instances, this object should be deleted.
typedef std::set<PluginInstance*> PluginInstanceSet;