| 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.
|
|
|