OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PEPPER_PLUGIN_INFO_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_PEPPER_PLUGIN_INFO_H_ |
6 #define CONTENT_PUBLIC_COMMON_PEPPER_PLUGIN_INFO_H_ | 6 #define CONTENT_PUBLIC_COMMON_PEPPER_PLUGIN_INFO_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
15 #include "content/public/common/webplugininfo.h" | 15 #include "content/public/common/webplugininfo.h" |
16 #include "ppapi/c/pp_module.h" | 16 #include "ppapi/c/pp_module.h" |
17 #include "ppapi/c/ppb.h" | 17 #include "ppapi/c/ppb.h" |
| 18 #include "ppapi/features/features.h" |
18 | 19 |
19 #if !defined(ENABLE_PLUGINS) | 20 #if !BUILDFLAG(ENABLE_PLUGINS) |
20 #error "Plugins should be enabled" | 21 #error "Plugins should be enabled" |
21 #endif | 22 #endif |
22 | 23 |
23 namespace content { | 24 namespace content { |
24 | 25 |
25 struct CONTENT_EXPORT PepperPluginInfo { | 26 struct CONTENT_EXPORT PepperPluginInfo { |
26 typedef const void* (*GetInterfaceFunc)(const char*); | 27 typedef const void* (*GetInterfaceFunc)(const char*); |
27 typedef int (*PPP_InitializeModuleFunc)(PP_Module, PPB_GetInterface); | 28 typedef int (*PPP_InitializeModuleFunc)(PP_Module, PPB_GetInterface); |
28 typedef void (*PPP_ShutdownModuleFunc)(); | 29 typedef void (*PPP_ShutdownModuleFunc)(); |
29 | 30 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // entry points for the internal plugins. | 67 // entry points for the internal plugins. |
67 EntryPoints internal_entry_points; | 68 EntryPoints internal_entry_points; |
68 | 69 |
69 // Permission bits from ppapi::Permission. | 70 // Permission bits from ppapi::Permission. |
70 uint32_t permissions; | 71 uint32_t permissions; |
71 }; | 72 }; |
72 | 73 |
73 } // namespace content | 74 } // namespace content |
74 | 75 |
75 #endif // CONTENT_PUBLIC_COMMON_PEPPER_PLUGIN_INFO_H_ | 76 #endif // CONTENT_PUBLIC_COMMON_PEPPER_PLUGIN_INFO_H_ |
OLD | NEW |