OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |