summaryrefslogtreecommitdiffstats
path: root/chrome/common/plugin_group.h
diff options
context:
space:
mode:
authorbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-06 15:38:29 +0000
committerbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-06 15:38:29 +0000
commit8b86363bc6c71aed7d10bef1c496b558faac5628 (patch)
tree96a77f7782d593b380bc02332935b8c692902341 /chrome/common/plugin_group.h
parentc500bc9f09f9b28c9dbc2c956abdbb8e7f5e6600 (diff)
downloadchromium_src-8b86363bc6c71aed7d10bef1c496b558faac5628.zip
chromium_src-8b86363bc6c71aed7d10bef1c496b558faac5628.tar.gz
chromium_src-8b86363bc6c71aed7d10bef1c496b558faac5628.tar.bz2
Disable outdated non-sandboxed plugins.
BUG=47731 TEST=Run with --disable-outdated-plugins Review URL: http://codereview.chromium.org/3038051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55227 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/plugin_group.h')
-rw-r--r--chrome/common/plugin_group.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/chrome/common/plugin_group.h b/chrome/common/plugin_group.h
index 7990038..d4db0fc 100644
--- a/chrome/common/plugin_group.h
+++ b/chrome/common/plugin_group.h
@@ -28,9 +28,13 @@ struct PluginGroupDefinition {
const char* update_url; // Location of latest secure version.
};
+// A PluginGroup can match a range of versions of a specific plugin (as defined
+// by matching a substring of its name).
+// It contains all WebPluginInfo structs (at least one) matching its definition.
+// In addition, it knows about a security "baseline", i.e. the minimum version
+// of a plugin that is needed in order not to exhibit known security
+// vulnerabilities.
-// A PluginGroup contains at least one WebPluginInfo.
-// In addition, it knows if the plugin is critically vulnerable.
class PluginGroup {
public:
// Creates a PluginGroup from a PluginGroupDefinition.
@@ -41,7 +45,9 @@ class PluginGroup {
// definition is found.
static PluginGroup* FromWebPluginInfo(const WebPluginInfo& wpi);
- // Find a plugin group matching |info| in the list of hardcoded plugins.
+ // Find a plugin group matching |info| in the list of hardcoded plugins and
+ // returns a copy of it if found, or a new group matching exactly this plugin
+ // otherwise.
static PluginGroup* FindHardcodedPluginGroup(const WebPluginInfo& info);
// Configures the set of plugin names that are disabled by policy.