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_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) |
| 11 #error "Plugins should be enabled" |
| 12 #endif |
| 13 |
10 namespace content { | 14 namespace content { |
| 15 |
11 struct PepperPluginInfo; | 16 struct PepperPluginInfo; |
12 struct WebPluginInfo; | 17 struct WebPluginInfo; |
13 | 18 |
14 // Constructs a PepperPluginInfo from a WebPluginInfo. Returns false if | 19 // Constructs a PepperPluginInfo from a WebPluginInfo. Returns false if |
15 // the operation is not possible, in particular the WebPluginInfo::type | 20 // the operation is not possible, in particular the WebPluginInfo::type |
16 // must be one of the pepper types. | 21 // must be one of the pepper types. |
17 bool MakePepperPluginInfo(const WebPluginInfo& webplugin_info, | 22 bool MakePepperPluginInfo(const WebPluginInfo& webplugin_info, |
18 PepperPluginInfo* pepper_info); | 23 PepperPluginInfo* pepper_info); |
19 | 24 |
20 // Computes the list of known pepper plugins. | 25 // Computes the list of known pepper plugins. |
21 void ComputePepperPluginList(std::vector<PepperPluginInfo>* plugins); | 26 void ComputePepperPluginList(std::vector<PepperPluginInfo>* plugins); |
22 | 27 |
23 } // namespace content | 28 } // namespace content |
24 | 29 |
25 #endif // CONTENT_COMMON_PEPPER_PLUGIN_LIST_H_ | 30 #endif // CONTENT_COMMON_PEPPER_PLUGIN_LIST_H_ |
OLD | NEW |