summaryrefslogtreecommitdiffstats
path: root/chrome/common/plugin_group.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/plugin_group.h')
-rw-r--r--chrome/common/plugin_group.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/common/plugin_group.h b/chrome/common/plugin_group.h
index dba66ae..f9f6ce3 100644
--- a/chrome/common/plugin_group.h
+++ b/chrome/common/plugin_group.h
@@ -5,6 +5,7 @@
#ifndef CHROME_COMMON_PLUGIN_GROUP_H_
#define CHROME_COMMON_PLUGIN_GROUP_H_
+#include <set>
#include <vector>
#include "base/linked_ptr.h"
@@ -41,6 +42,17 @@ class PluginGroup {
// Find a plugin group matching |info| in the list of hardcoded plugins.
static PluginGroup* FindHardcodedPluginGroup(const WebPluginInfo& info);
+ // Configures the set of plugin names that are disabled by policy.
+ static void SetPolicyDisabledPluginSet(const std::set<string16>& set);
+
+ // Tests to see if a plugin is on the blacklist using its name as
+ // the lookup key.
+ static bool IsPluginNameDisabledByPolicy(const string16& plugin_name);
+
+ // Tests to see if a plugin is on the blacklist using its path as
+ // the lookup key.
+ static bool IsPluginPathDisabledByPolicy(const FilePath& plugin_path);
+
// Find the PluginGroup matching a Plugin in a list of plugin groups. Returns
// NULL if no matching PluginGroup is found.
static PluginGroup* FindGroupMatchingPlugin(
@@ -94,6 +106,8 @@ class PluginGroup {
const std::string& min_version,
const std::string& update_url);
+ static std::set<string16>* policy_disabled_puglins_;
+
string16 group_name_;
string16 name_matcher_;
std::string version_range_low_str_;