Index: webkit/plugins/ppapi/ppapi_plugin_info.h |
=================================================================== |
--- webkit/plugins/ppapi/ppapi_plugin_info.h (revision 0) |
+++ webkit/plugins/ppapi/ppapi_plugin_info.h (revision 0) |
@@ -0,0 +1,54 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INFO_H_ |
+#define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INFO_H_ |
+ |
+#include <string> |
+ |
+#include "base/file_path.h" |
+#include "webkit/plugins/ppapi/plugin_module.h" |
+#include "webkit/plugins/webplugininfo.h" |
+ |
+namespace webkit { |
+namespace ppapi { |
+ |
+struct PluginInfo { |
+ PluginInfo(); |
+ ~PluginInfo(); |
+ |
+ // Indicates internal plugins for which there's not actually a library. |
+ // These plugins are implemented in the Chrome binary using a separate set |
+ // of entry points (see internal_entry_points below). |
+ // Defaults to false. |
+ bool is_internal; |
+ |
+ // True when this plugin should be run out of process. Defaults to false. |
+ bool is_out_of_process; |
+ |
+ FilePath path; // Internal plugins have "internal-[name]" as path. |
+ std::string name; |
+ std::string description; |
+ std::string version; |
+ std::vector<webkit::WebPluginMimeType> mime_types; |
+ |
+ // When is_internal is set, this contains the function pointers to the |
+ // entry points for the internal plugins. |
+ PluginModule::EntryPoints internal_entry_points; |
+}; |
+ |
+// Constructs a WebPluginInfo from a ppapi::PluginInfo. |
+extern void PepperToWebPluginInfo(const PluginInfo& pepper_info, |
+ webkit::WebPluginInfo* web_info); |
+ |
+// Constructs a ppapi::PluginInfo from a WebPluginInfo. Returns false if |
+// the operation is not possible, in particular the WebPluginInfo::type |
+// must be one of the pepper types. |
+extern bool WebToPepperPluginInfo(const webkit::WebPluginInfo& web_info, |
+ PluginInfo* pepper_info); |
+ |
+} // namespace ppapi |
+} // namespace webkit |
+ |
+#endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INFO_H_ |
Property changes on: webkit\plugins\ppapi\ppapi_plugin_info.h |
___________________________________________________________________ |
Added: svn:eol-style |
+ LF |