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.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.