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

Unified Diff: webkit/plugins/ppapi/ppapi_plugin_info.h

Issue 7978009: Split ppapi::PluginList from PepperPluginRegistry so that DRT could load pepper plugins. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/plugin_switches.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « webkit/plugins/plugin_switches.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698