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

Unified Diff: webkit/plugins/webplugininfo.cc

Issue 10831224: Add pepper permissions to WebPluginInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « webkit/plugins/webplugininfo.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/webplugininfo.cc
diff --git a/webkit/plugins/webplugininfo.cc b/webkit/plugins/webplugininfo.cc
index bfd473c45a4d53dfcf8466ac45491cd4c68ce481..27c65149d463ae301a1ae4be61c760a3ae87d862 100644
--- a/webkit/plugins/webplugininfo.cc
+++ b/webkit/plugins/webplugininfo.cc
@@ -22,7 +22,9 @@ WebPluginMimeType::WebPluginMimeType(const std::string& m,
WebPluginMimeType::~WebPluginMimeType() {}
-WebPluginInfo::WebPluginInfo() : type(PLUGIN_TYPE_NPAPI) {
+WebPluginInfo::WebPluginInfo()
+ : type(PLUGIN_TYPE_NPAPI),
+ pepper_permissions(0) {
}
WebPluginInfo::WebPluginInfo(const WebPluginInfo& rhs)
@@ -31,7 +33,8 @@ WebPluginInfo::WebPluginInfo(const WebPluginInfo& rhs)
version(rhs.version),
desc(rhs.desc),
mime_types(rhs.mime_types),
- type(rhs.type) {
+ type(rhs.type),
+ pepper_permissions(rhs.pepper_permissions) {
}
WebPluginInfo::~WebPluginInfo() {}
@@ -43,6 +46,7 @@ WebPluginInfo& WebPluginInfo::operator=(const WebPluginInfo& rhs) {
desc = rhs.desc;
mime_types = rhs.mime_types;
type = rhs.type;
+ pepper_permissions = rhs.pepper_permissions;
return *this;
}
@@ -55,7 +59,8 @@ WebPluginInfo::WebPluginInfo(const string16& fake_name,
version(fake_version),
desc(fake_desc),
mime_types(),
- type(PLUGIN_TYPE_NPAPI) {
+ type(PLUGIN_TYPE_NPAPI),
+ pepper_permissions(0) {
}
bool IsPepperPlugin(const WebPluginInfo& plugin) {
« no previous file with comments | « webkit/plugins/webplugininfo.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698