1bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdoch// Copyright (c) 2012 The Chromium Authors. All rights reserved. 2bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdoch// Use of this source code is governed by a BSD-style license that can be 3bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdoch// found in the LICENSE file. 4bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdoch 5bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdoch#ifndef CONTENT_COMMON_PEPPER_PLUGIN_LIST_H_ 6bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdoch#define CONTENT_COMMON_PEPPER_PLUGIN_LIST_H_ 7bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdoch 8bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdoch#include <vector> 9bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdoch 101320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci#if !defined(ENABLE_PLUGINS) 111320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci#error "Plugins should be enabled" 121320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci#endif 131320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci 14bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdochnamespace content { 151320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci 16bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdochstruct PepperPluginInfo; 17bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdochstruct WebPluginInfo; 18bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdoch 19bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdoch// Constructs a PepperPluginInfo from a WebPluginInfo. Returns false if 20bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdoch// the operation is not possible, in particular the WebPluginInfo::type 21bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdoch// must be one of the pepper types. 22bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdochbool MakePepperPluginInfo(const WebPluginInfo& webplugin_info, 23bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdoch PepperPluginInfo* pepper_info); 24bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdoch 25bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdoch// Computes the list of known pepper plugins. 26bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdochvoid ComputePepperPluginList(std::vector<PepperPluginInfo>* plugins); 27bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdoch 28bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdoch} // namespace content 29bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdoch 30bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdoch#endif // CONTENT_COMMON_PEPPER_PLUGIN_LIST_H_ 31