diff options
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_switches.cc | 3 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 1 | ||||
-rw-r--r-- | chrome/common/plugin_group.h | 12 | ||||
-rw-r--r-- | chrome/common/render_messages_internal.h | 5 |
4 files changed, 18 insertions, 3 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index 454fffd..cf12f1c 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -184,6 +184,9 @@ const char kDisableLogging[] = "disable-logging"; // notification. const char kDisableNewTabFirstRun[] = "disable-new-tab-first-run"; +// Prevent outdated plugins from running. +const char kDisableOutdatedPlugins[] = "disable-outdated-plugins"; + // Prevent plugins from running. const char kDisablePlugins[] = "disable-plugins"; diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index cc69770..b8f1255 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -67,6 +67,7 @@ extern const char kDisableJava[]; extern const char kDisableLocalStorage[]; extern const char kDisableLogging[]; extern const char kDisableNewTabFirstRun[]; +extern const char kDisableOutdatedPlugins[]; extern const char kDisablePlugins[]; extern const char kDisablePopupBlocking[]; extern const char kDisablePromptOnRepost[]; 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. diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index ce787dd..a9efdc8 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -1696,6 +1696,11 @@ IPC_BEGIN_MESSAGES(ViewHost) IPC_MESSAGE_ROUTED1(ViewHostMsg_CrashedPlugin, FilePath /* plugin_path */) + // Notifies when a plugin couldn't be loaded because it's outdated. + IPC_MESSAGE_ROUTED2(ViewHostMsg_DisabledOutdatedPlugin, + string16, /* name */ + GURL /* update_url */) + // Displays a JavaScript out-of-memory message in the infobar. IPC_MESSAGE_ROUTED0(ViewHostMsg_JSOutOfMemory) |