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

Side by Side Diff: content/public/common/pepper_plugin_info.h

Issue 2512563003: Convert enable_plugins to a buildflag header. (Closed)
Patch Set: Merge Created 4 years, 1 month 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
« no previous file with comments | « content/public/common/BUILD.gn ('k') | content/public/renderer/BUILD.gn » ('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) 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
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_
OLDNEW
« no previous file with comments | « content/public/common/BUILD.gn ('k') | content/public/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698