Add the ability to specify full plugin matching parameters including multiple mime types and file extensions via CefPluginInfo (issue #401).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@352 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-11-01 16:04:57 +00:00
parent 1bb1526985
commit 7a4cb9dd20
9 changed files with 158 additions and 20 deletions

View File

@@ -71,8 +71,11 @@ public:
{
cef_string_clear(&unique_name);
cef_string_clear(&display_name);
cef_string_clear(&version);
cef_string_clear(&description);
cef_string_clear(&mime_type);
cef_string_clear(&mime_types);
cef_string_clear(&file_extensions);
cef_string_clear(&type_descriptions);
Init();
}
@@ -96,8 +99,13 @@ public:
{
cef_string_copy(r.unique_name.str, r.unique_name.length, &unique_name);
cef_string_copy(r.display_name.str, r.display_name.length, &display_name);
cef_string_copy(r.version.str, r.version.length, &version);
cef_string_copy(r.description.str, r.description.length, &description);
cef_string_copy(r.mime_type.str, r.mime_type.length, &mime_type);
cef_string_copy(r.mime_types.str, r.mime_types.length, &mime_types);
cef_string_copy(r.file_extensions.str, r.file_extensions.length,
&file_extensions);
cef_string_copy(r.type_descriptions.str, r.type_descriptions.length,
&type_descriptions);
#if !defined(OS_POSIX) || defined(OS_MACOSX)
np_getentrypoints = r.np_getentrypoints;
#endif