Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(423)

Unified Diff: webkit/glue/plugins/plugin_group.h

Issue 5699005: Policy: Re-enabled plugin still disabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: MacOS support patched in. Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_; }

Powered by Google App Engine
This is Rietveld 408576698