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

Unified Diff: chrome/browser/plugin_installer.h

Issue 9536013: Move |requires_authorization| flag for plug-ins out of webkit/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright Created 8 years, 9 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_unittest.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 0b431132bc134892f2eebabe177d02659b5bc3a6..b3a9f53543c6bcc602211138d4d7ad7298b0cb59 100644
--- a/chrome/browser/plugin_installer.h
+++ b/chrome/browser/plugin_installer.h
@@ -33,7 +33,8 @@ class PluginInstaller : public content::DownloadItem::Observer {
const GURL& plugin_url,
const GURL& help_url,
const string16& name,
- bool url_for_display);
+ bool url_for_display,
+ bool requires_authorization);
virtual ~PluginInstaller();
virtual void OnDownloadUpdated(content::DownloadItem* download) OVERRIDE;
@@ -55,6 +56,9 @@ class PluginInstaller : public content::DownloadItem::Observer {
// Human-readable name of the plug-in.
const string16& name() const { return name_; }
+ // Whether the plug-in requires user authorization to run.
+ bool requires_authorization() const { return requires_authorization_; }
+
// 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
@@ -90,6 +94,7 @@ class PluginInstaller : public content::DownloadItem::Observer {
GURL help_url_;
string16 name_;
bool url_for_display_;
+ bool requires_authorization_;
DISALLOW_COPY_AND_ASSIGN(PluginInstaller);
};
« no previous file with comments | « chrome/browser/plugin_finder_unittest.cc ('k') | chrome/browser/plugin_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698