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

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: Adding a method to PluginFinder to get a PluginInstaller by WebPluginInfo. 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
Index: chrome/browser/plugin_installer.h
diff --git a/chrome/browser/plugin_installer.h b/chrome/browser/plugin_installer.h
index bd2606d1d33e0cd5ceabf1ac4df61bdf97624ef7..0fb159201086ed7e985cc3960d250fbcaf31132d 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,15 @@ class PluginInstaller : public content::DownloadItem::Observer {
// Human-readable name of the plug-in.
const string16& name() const { return name_; }
+ // Plug-in group name.
+ const string16& group_name() const { return group_name_; }
+
+ // Sets |group_name_|
+ void set_group_name(const string16& group_name) { group_name_ = group_name; }
Bernhard Bauer 2012/08/22 15:11:30 We don't really need a separate "group name" anymo
ibraaaa 2012/08/22 18:29:25 That is what I am doing. If you checked how the gr
Bernhard Bauer 2012/08/22 19:45:57 What I meant was that there is no reason to have b
ibraaaa 2012/08/23 08:35:55 Done.
+
+ // Plug-in group name substring used in matching plug-ins of the same group.
+ const string16& group_name_matcher() const { return group_name_matcher_; }
Bernhard Bauer 2012/08/22 15:11:30 It might be nice to just have a public method that
ibraaaa 2012/08/22 18:29:25 LIKE, I mean +1 :) On 2012/08/22 15:11:30, Bernha
+
// 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 +118,8 @@ class PluginInstaller : public content::DownloadItem::Observer {
std::string identifier_;
string16 name_;
+ string16 group_name_;
+ string16 group_name_matcher_;
bool url_for_display_;
GURL plugin_url_;
GURL help_url_;

Powered by Google App Engine
This is Rietveld 408576698