Chromium Code Reviews| Index: chrome/browser/plugins/plugin_metadata.h |
| diff --git a/chrome/browser/plugins/plugin_metadata.h b/chrome/browser/plugins/plugin_metadata.h |
| index b8ca5e0d1976857cd99ca2d81f7ef24c8cfbb532..7a6d9b5f18f76ab64a4b02054946c096349fc5c4 100644 |
| --- a/chrome/browser/plugins/plugin_metadata.h |
| +++ b/chrome/browser/plugins/plugin_metadata.h |
| @@ -40,7 +40,8 @@ class PluginMetadata { |
| bool url_for_display, |
| const GURL& plugin_url, |
| const GURL& help_url, |
| - const string16& group_name_matcher); |
| + const string16& group_name_matcher, |
| + const std::string& language); |
| ~PluginMetadata(); |
| // Unique identifier for the plug-in. |
| @@ -58,12 +59,18 @@ class PluginMetadata { |
| // URL to open when the user clicks on the "Problems installing?" link. |
| const GURL& help_url() const { return help_url_; } |
|
Bernhard Bauer
2012/10/02 14:40:13
Nit: newline
ibraaaa
2012/10/02 16:14:53
Done.
|
| + const std::string& language() const { return language_; } |
| + |
| + bool HasMimeType(const std::string& mime_type) const; |
| + void AddMimeType(const std::string& mime_type); |
| + void AddMatchingMimeType(const std::string& mime_type); |
| // Adds information about a plug-in version. |
| void AddVersion(const Version& version, SecurityStatus status); |
| // Checks if the plug-in matches the group matcher. |
| - bool MatchesPlugin(const webkit::WebPluginInfo& plugin); |
| + bool MatchesPlugin(const webkit::WebPluginInfo& plugin, |
| + string16* matching_name); |
| // If |status_str| describes a valid security status, writes it to |status| |
| // and returns true, else returns false and leaves |status| unchanged. |
| @@ -87,7 +94,10 @@ class PluginMetadata { |
| bool url_for_display_; |
| GURL plugin_url_; |
| GURL help_url_; |
| + std::string language_; |
| std::map<Version, SecurityStatus, VersionComparator> versions_; |
| + std::vector<std::string> all_mime_types_; |
| + std::vector<std::string> matching_mime_types_; |
| DISALLOW_COPY_AND_ASSIGN(PluginMetadata); |
| }; |