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

Unified Diff: webkit/glue/plugins/plugin_lib.h

Issue 19625: Add support for dynamically loading internal plugins (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 11 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 | « no previous file | webkit/glue/plugins/plugin_lib_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/plugin_lib.h
===================================================================
--- webkit/glue/plugins/plugin_lib.h (revision 8751)
+++ webkit/glue/plugins/plugin_lib.h (working copy)
@@ -30,15 +30,15 @@
// includes addresses of entry functions. (Yes, it's Win32 NPAPI-centric, but
// it'll do for holding descriptions of internal plugins cross-platform.)
struct PluginVersionInfo {
- const FilePath::CharType* path;
+ FilePath::StringType path;
// Info about the plugin itself.
- const wchar_t* product_name;
- const wchar_t* file_description;
- const wchar_t* file_version;
+ std::wstring product_name;
+ std::wstring file_description;
+ std::wstring file_version;
// Info about the data types that the plugin supports.
- const wchar_t* mime_types;
- const wchar_t* file_extensions;
- const wchar_t* type_descriptions;
+ std::wstring mime_types;
+ std::wstring file_extensions;
+ std::wstring type_descriptions;
// Entry points for internal plugins, NULL for external ones.
NP_GetEntryPointsFunc np_getentrypoints;
NP_InitializeFunc np_initialize;
@@ -52,6 +52,11 @@
static PluginLib* CreatePluginLib(const FilePath& filename);
virtual ~PluginLib();
+ // Register an internal plugin with the specified plugin information and
+ // function pointers. An internal plugin must be registered before it can
+ // be loaded using PluginList::LoadPlugin().
+ static void RegisterInternalPlugin(const PluginVersionInfo& info);
+
// Creates a WebPluginInfo structure given a plugin's path. On success
// returns true, with the information being put into "info". If it's an
// internal plugin, the function pointers are returned as well.
« no previous file with comments | « no previous file | webkit/glue/plugins/plugin_lib_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698