Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1952)

Unified Diff: chrome/browser/plugin_installer.h

Issue 10881002: [2] Adding a method to PluginFinder to get a PluginInstaller by WebPluginInfo. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixing Windows Compilation Error Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/plugin_finder.cc ('k') | chrome/browser/plugin_installer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugin_installer.h
diff --git a/chrome/browser/plugin_installer.h b/chrome/browser/plugin_installer.h
index bd2606d1d33e0cd5ceabf1ac4df61bdf97624ef7..85a7f6f6b0c958d8fe43d26eae349d725fba0557 100644
--- a/chrome/browser/plugin_installer.h
+++ b/chrome/browser/plugin_installer.h
@@ -44,7 +44,8 @@ class PluginInstaller : public content::DownloadItem::Observer {
const string16& name,
bool url_for_display,
const GURL& plugin_url,
- const GURL& help_url);
+ const GURL& help_url,
+ const string16& group_name_matcher);
virtual ~PluginInstaller();
virtual void OnDownloadUpdated(content::DownloadItem* download) OVERRIDE;
@@ -62,6 +63,9 @@ class PluginInstaller : public content::DownloadItem::Observer {
// Human-readable name of the plug-in.
const string16& name() const { return name_; }
+ // Checks if the plug-in matches the group matcher.
+ bool MatchesPlugin(const webkit::WebPluginInfo& plugin);
+
// If |url_for_display| is false, |plugin_url| is the URL of the download page
// for the plug-in, which should be opened in a new tab. If it is true,
// |plugin_url| is the URL of the plug-in installer binary, which can be
@@ -108,6 +112,7 @@ class PluginInstaller : public content::DownloadItem::Observer {
std::string identifier_;
string16 name_;
+ string16 group_name_matcher_;
bool url_for_display_;
GURL plugin_url_;
GURL help_url_;
« no previous file with comments | « chrome/browser/plugin_finder.cc ('k') | chrome/browser/plugin_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698