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

Side by Side Diff: webkit/plugins/webplugininfo.h

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/pepper_plugin_registry.cc ('k') | webkit/plugins/webplugininfo.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_PLUGINS_WEBPLUGININFO_H_ 5 #ifndef WEBKIT_PLUGINS_WEBPLUGININFO_H_
6 #define WEBKIT_PLUGINS_WEBPLUGININFO_H_ 6 #define WEBKIT_PLUGINS_WEBPLUGININFO_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 string16 version; 67 string16 version;
68 68
69 // A description of the plugin that we get from its version info. 69 // A description of the plugin that we get from its version info.
70 string16 desc; 70 string16 desc;
71 71
72 // A list of all the mime types that this plugin supports. 72 // A list of all the mime types that this plugin supports.
73 std::vector<WebPluginMimeType> mime_types; 73 std::vector<WebPluginMimeType> mime_types;
74 74
75 // Plugin type. See the PluginType enum. 75 // Plugin type. See the PluginType enum.
76 int type; 76 int type;
77
78 // When type is PLUGIN_TYPE_PEPPER_* this indicates the permission bits.
79 int32 pepper_permissions;
77 }; 80 };
78 81
79 // Checks whether a plugin is a Pepper plugin, enabled or disabled. 82 // Checks whether a plugin is a Pepper plugin, enabled or disabled.
80 WEBKIT_PLUGINS_EXPORT bool IsPepperPlugin(const WebPluginInfo& plugin); 83 WEBKIT_PLUGINS_EXPORT bool IsPepperPlugin(const WebPluginInfo& plugin);
81 84
82 WEBKIT_PLUGINS_EXPORT bool IsOutOfProcessPlugin(const WebPluginInfo& plugin); 85 WEBKIT_PLUGINS_EXPORT bool IsOutOfProcessPlugin(const WebPluginInfo& plugin);
83 86
84 } // namespace webkit 87 } // namespace webkit
85 88
86 #endif // WEBKIT_PLUGINS_WEBPLUGININFO_H_ 89 #endif // WEBKIT_PLUGINS_WEBPLUGININFO_H_
OLDNEW
« no previous file with comments | « content/common/pepper_plugin_registry.cc ('k') | webkit/plugins/webplugininfo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698