diff options
author | danno@chromium.org <danno@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 16:04:49 +0000 |
---|---|---|
committer | danno@chromium.org <danno@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 16:04:49 +0000 |
commit | e541d9fb2e77ff788bf2353331b34ba841b99ff5 (patch) | |
tree | 3aeb2e2a599c4a73c9b068c4f98c9258a1a68c5f /chrome/common/plugin_group.h | |
parent | facc6ada0300c8e9a67b0cf283257a2c70fa15c2 (diff) | |
download | chromium_src-e541d9fb2e77ff788bf2353331b34ba841b99ff5.zip chromium_src-e541d9fb2e77ff788bf2353331b34ba841b99ff5.tar.gz chromium_src-e541d9fb2e77ff788bf2353331b34ba841b99ff5.tar.bz2 |
Implement disabling of plugins through policy
TEST=manual testing of plugins page, ConfigurationPolicyPrefStoreTest*
BUG=45856
Review URL: http://codereview.chromium.org/2833034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52487 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/plugin_group.h')
-rw-r--r-- | chrome/common/plugin_group.h | 14 |
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_; |