diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-12 19:43:44 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-12 19:43:44 +0000 |
commit | b734450b86e9d6bd7a07b381c119ca91803ae46b (patch) | |
tree | 5099af8aa485c96af0c487e434bca5a0212f424e /chrome/common/render_messages.h | |
parent | 64a02b8056c86576428022859baadbb9a7b929f1 (diff) | |
download | chromium_src-b734450b86e9d6bd7a07b381c119ca91803ae46b.zip chromium_src-b734450b86e9d6bd7a07b381c119ca91803ae46b.tar.gz chromium_src-b734450b86e9d6bd7a07b381c119ca91803ae46b.tar.bz2 |
Get rid of lowercasing plugin filenames in order to determine if two paths point to the same plugin. Check plugin versions and load the latest version if multiple versions are found.I've also refactored and cleaned PluginList so that it doesn't depend on PluginLib, which only made sense a long time ago when plugins were loaded in process. Now PluginLib will only be loaded in the plugin process (and not in the browser process as well).
Review URL: http://codereview.chromium.org/17451
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7888 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages.h')
-rw-r--r-- | chrome/common/render_messages.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h index 5c8a39b..24e3c96a 100644 --- a/chrome/common/render_messages.h +++ b/chrome/common/render_messages.h @@ -1122,7 +1122,8 @@ struct ParamTraits<WebPluginInfo> { typedef WebPluginInfo param_type; static void Write(Message* m, const param_type& p) { WriteParam(m, p.name); - WriteParam(m, p.file); + WriteParam(m, p.filename); + WriteParam(m, p.path); WriteParam(m, p.version); WriteParam(m, p.desc); WriteParam(m, p.mime_types); @@ -1130,7 +1131,8 @@ struct ParamTraits<WebPluginInfo> { static bool Read(const Message* m, void** iter, param_type* r) { return ReadParam(m, iter, &r->name) && - ReadParam(m, iter, &r->file) && + ReadParam(m, iter, &r->filename) && + ReadParam(m, iter, &r->path) && ReadParam(m, iter, &r->version) && ReadParam(m, iter, &r->desc) && ReadParam(m, iter, &r->mime_types); @@ -1139,7 +1141,9 @@ struct ParamTraits<WebPluginInfo> { l->append(L"("); LogParam(p.name, l); l->append(L", "); - LogParam(p.file, l); + LogParam(p.filename, l); + l->append(L", "); + LogParam(p.path, l); l->append(L", "); LogParam(p.version, l); l->append(L", "); |