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

Side by Side Diff: content/common/pepper_plugin_list.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/common/pepper_file_util.h ('k') | content/common/pepper_renderer_instance_data.h » ('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_COMMON_PEPPER_PLUGIN_LIST_H_ 5 #ifndef CONTENT_COMMON_PEPPER_PLUGIN_LIST_H_
6 #define CONTENT_COMMON_PEPPER_PLUGIN_LIST_H_ 6 #define CONTENT_COMMON_PEPPER_PLUGIN_LIST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #if !defined(ENABLE_PLUGINS) 10 #include "ppapi/features/features.h"
11
12 #if !BUILDFLAG(ENABLE_PLUGINS)
11 #error "Plugins should be enabled" 13 #error "Plugins should be enabled"
12 #endif 14 #endif
13 15
14 namespace content { 16 namespace content {
15 17
16 struct PepperPluginInfo; 18 struct PepperPluginInfo;
17 struct WebPluginInfo; 19 struct WebPluginInfo;
18 20
19 // Constructs a PepperPluginInfo from a WebPluginInfo. Returns false if 21 // Constructs a PepperPluginInfo from a WebPluginInfo. Returns false if
20 // the operation is not possible, in particular the WebPluginInfo::type 22 // the operation is not possible, in particular the WebPluginInfo::type
21 // must be one of the pepper types. 23 // must be one of the pepper types.
22 bool MakePepperPluginInfo(const WebPluginInfo& webplugin_info, 24 bool MakePepperPluginInfo(const WebPluginInfo& webplugin_info,
23 PepperPluginInfo* pepper_info); 25 PepperPluginInfo* pepper_info);
24 26
25 // Computes the list of known pepper plugins. 27 // Computes the list of known pepper plugins.
26 void ComputePepperPluginList(std::vector<PepperPluginInfo>* plugins); 28 void ComputePepperPluginList(std::vector<PepperPluginInfo>* plugins);
27 29
28 } // namespace content 30 } // namespace content
29 31
30 #endif // CONTENT_COMMON_PEPPER_PLUGIN_LIST_H_ 32 #endif // CONTENT_COMMON_PEPPER_PLUGIN_LIST_H_
OLDNEW
« no previous file with comments | « content/common/pepper_file_util.h ('k') | content/common/pepper_renderer_instance_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698