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 CONTENT_PUBLIC_COMMON_WEBPLUGININFO_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_WEBPLUGININFO_H_ |
6 #define CONTENT_PUBLIC_COMMON_WEBPLUGININFO_H_ | 6 #define CONTENT_PUBLIC_COMMON_WEBPLUGININFO_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 28 matching lines...) Expand all Loading... |
39 base::string16 description; | 39 base::string16 description; |
40 | 40 |
41 // Extra parameters to include when instantiating the plugin. | 41 // Extra parameters to include when instantiating the plugin. |
42 std::vector<base::string16> additional_param_names; | 42 std::vector<base::string16> additional_param_names; |
43 std::vector<base::string16> additional_param_values; | 43 std::vector<base::string16> additional_param_values; |
44 }; | 44 }; |
45 | 45 |
46 // Describes an available NPAPI or Pepper plugin. | 46 // Describes an available NPAPI or Pepper plugin. |
47 struct CONTENT_EXPORT WebPluginInfo { | 47 struct CONTENT_EXPORT WebPluginInfo { |
48 enum PluginType { | 48 enum PluginType { |
49 PLUGIN_TYPE_NPAPI, | |
50 PLUGIN_TYPE_PEPPER_IN_PROCESS, | 49 PLUGIN_TYPE_PEPPER_IN_PROCESS, |
51 PLUGIN_TYPE_PEPPER_OUT_OF_PROCESS, | 50 PLUGIN_TYPE_PEPPER_OUT_OF_PROCESS, |
52 PLUGIN_TYPE_BROWSER_PLUGIN | 51 PLUGIN_TYPE_BROWSER_PLUGIN |
53 }; | 52 }; |
54 | 53 |
55 WebPluginInfo(); | 54 WebPluginInfo(); |
56 WebPluginInfo(const WebPluginInfo& rhs); | 55 WebPluginInfo(const WebPluginInfo& rhs); |
57 ~WebPluginInfo(); | 56 ~WebPluginInfo(); |
58 WebPluginInfo& operator=(const WebPluginInfo& rhs); | 57 WebPluginInfo& operator=(const WebPluginInfo& rhs); |
59 | 58 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // Plugin type. See the PluginType enum. | 90 // Plugin type. See the PluginType enum. |
92 int type; | 91 int type; |
93 | 92 |
94 // When type is PLUGIN_TYPE_PEPPER_* this indicates the permission bits. | 93 // When type is PLUGIN_TYPE_PEPPER_* this indicates the permission bits. |
95 int32_t pepper_permissions; | 94 int32_t pepper_permissions; |
96 }; | 95 }; |
97 | 96 |
98 } // namespace content | 97 } // namespace content |
99 | 98 |
100 #endif // CONTENT_PUBLIC_COMMON_WEBPLUGININFO_H_ | 99 #endif // CONTENT_PUBLIC_COMMON_WEBPLUGININFO_H_ |
OLD | NEW |