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 3 // found in the LICENSE file. 4 5 #ifndef CONTENT_COMMON_PEPPER_PLUGIN_LIST_H_ 6 #define CONTENT_COMMON_PEPPER_PLUGIN_LIST_H_ 7 8 #include <vector> 9 10 #include "ppapi/buildflags/buildflags.h" 11 12 #if !BUILDFLAG(ENABLE_PLUGINS) 13 #error "Plugins should be enabled" 14 #endif 15 16 namespace content { 17 18 struct PepperPluginInfo; 19 struct WebPluginInfo; 20 21 // Constructs a PepperPluginInfo from a WebPluginInfo. Returns false if 22 // the operation is not possible, in particular the WebPluginInfo::type 23 // must be one of the pepper types. 24 bool MakePepperPluginInfo(const WebPluginInfo& webplugin_info, 25 PepperPluginInfo* pepper_info); 26 27 // Computes the list of known pepper plugins. 28 void ComputePepperPluginList(std::vector<PepperPluginInfo>* plugins); 29 30 } // namespace content 31 32 #endif // CONTENT_COMMON_PEPPER_PLUGIN_LIST_H_ 33