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

Unified Diff: webkit/plugins/npapi/plugin_group.h

Issue 6350010: Put some plug-ins behind an infobar, where they have:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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: webkit/plugins/npapi/plugin_group.h
===================================================================
--- webkit/plugins/npapi/plugin_group.h (revision 72707)
+++ webkit/plugins/npapi/plugin_group.h (working copy)
@@ -38,6 +38,7 @@
// to match anything higher than |version_matcher_low|.
const char* version_matcher_high;
const char* min_version; // Minimum secure version.
+ bool requires_authorization; // If this range needs user permission to run.
};
// Hard-coded definitions of plugin groups.
@@ -64,6 +65,7 @@
scoped_ptr<Version> low;
scoped_ptr<Version> high;
scoped_ptr<Version> min;
+ bool requires_authorization;
private:
void InitFrom(const VersionRange& other);
};
@@ -81,6 +83,9 @@
// enabled.
static const char* kAdobeReaderGroupName;
static const char* kAdobeReaderUpdateURL;
+ static const char* kJavaGroupName;
+ static const char* kQuickTimeGroupName;
+ static const char* kShockwaveGroupName;
PluginGroup(const PluginGroup& other);
@@ -160,6 +165,10 @@
// security problems.
bool IsVulnerable() const;
+ // Returns true if this plug-in group always requires user authorization
+ // to run.
+ bool RequiresAuthorization() const;
+
// Check if the group has no plugins. Could happen after a reload if the plug-
// in has disappeared from the pc (or in the process of updating).
bool IsEmpty() const;

Powered by Google App Engine
This is Rietveld 408576698