| Index: webkit/glue/plugins/plugin_group.h
|
| diff --git a/webkit/glue/plugins/plugin_group.h b/webkit/glue/plugins/plugin_group.h
|
| index e916b842a3423db644ddffe0ad2cc7ac6f481ea1..f61b04800a2b455356cfcb606b250d87071b9325 100644
|
| --- a/webkit/glue/plugins/plugin_group.h
|
| +++ b/webkit/glue/plugins/plugin_group.h
|
| @@ -98,12 +98,23 @@ class PluginGroup {
|
|
|
| // Adds the given plugin to this group. Provide the position of the
|
| // plugin as given by PluginList so we can display its priority.
|
| - void AddPlugin(const WebPluginInfo& plugin, int position);
|
| + // Retuns true if plugin has been added and false if it was already added.
|
| + bool AddPlugin(const WebPluginInfo& plugin, int position);
|
| +
|
| + // Returns a poitner to the plugin at the end of the |web_plugin_infos_|
|
| + // array.
|
| + std::vector<WebPluginInfo>& GetPlugins();
|
| +
|
| + // Returns the positions of the plugins in the group.
|
| + std::vector<int>& GetPluginPositions();
|
|
|
| // Enables/disables this group. This enables/disables all plugins in the
|
| // group.
|
| void Enable(bool enable);
|
|
|
| + // Refreshes the enabled flag based on the state of its plugins.
|
| + void RefreshEnabledState();
|
| +
|
| // Returns whether the plugin group is enabled or not.
|
| bool Enabled() const { return enabled_; }
|
|
|
|
|