diff options
author | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-03 08:18:24 +0000 |
---|---|---|
committer | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-03 08:18:24 +0000 |
commit | 7a13e7926699ad5d03f2d6e121b7bdb68ca05680 (patch) | |
tree | bc0875a8673be9bd54b0c126b76cc4efdb200fa3 /chrome/common | |
parent | d3f7e4fc4eedd2ec10877885cfd286aac1abacc6 (diff) | |
download | chromium_src-7a13e7926699ad5d03f2d6e121b7bdb68ca05680.zip chromium_src-7a13e7926699ad5d03f2d6e121b7bdb68ca05680.tar.gz chromium_src-7a13e7926699ad5d03f2d6e121b7bdb68ca05680.tar.bz2 |
Replace ViewHostMsg_GetPluginPath with ViewHostMsg_GetPluginInfo.
This enables the renderer to get more information about a plugin than just the path.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/3015029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54719 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/render_messages.h | 6 | ||||
-rw-r--r-- | chrome/common/render_messages_internal.h | 11 |
2 files changed, 11 insertions, 6 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h index acdd77e..02790e5 100644 --- a/chrome/common/render_messages.h +++ b/chrome/common/render_messages.h @@ -1307,6 +1307,7 @@ struct ParamTraits<WebPluginInfo> { WriteParam(m, p.version); WriteParam(m, p.desc); WriteParam(m, p.mime_types); + WriteParam(m, p.enabled); } static bool Read(const Message* m, void** iter, param_type* r) { return @@ -1314,7 +1315,8 @@ struct ParamTraits<WebPluginInfo> { ReadParam(m, iter, &r->path) && ReadParam(m, iter, &r->version) && ReadParam(m, iter, &r->desc) && - ReadParam(m, iter, &r->mime_types); + ReadParam(m, iter, &r->mime_types) && + ReadParam(m, iter, &r->enabled); } static void Log(const param_type& p, std::wstring* l) { l->append(L"("); @@ -1328,6 +1330,8 @@ struct ParamTraits<WebPluginInfo> { LogParam(p.desc, l); l->append(L", "); LogParam(p.mime_types, l); + l->append(L", "); + LogParam(p.enabled, l); l->append(L")"); } }; diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index b8ddb28..6fd0c49 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -1242,14 +1242,15 @@ IPC_BEGIN_MESSAGES(ViewHost) bool /* refresh*/, std::vector<WebPluginInfo> /* plugins */) - // Returns a path to a plugin for the given url and mime type. If there's - // no plugin, an empty string is returned. - IPC_SYNC_MESSAGE_CONTROL3_2(ViewHostMsg_GetPluginPath, + // Return information about a plugin for the given URL and MIME type. If there + // is no matching plugin, |found| is set to false. + IPC_SYNC_MESSAGE_CONTROL3_3(ViewHostMsg_GetPluginInfo, GURL /* url */, GURL /* policy_url */, std::string /* mime_type */, - FilePath /* filename */, - std::string /* actual mime type for url */) + bool /* found */, + WebPluginInfo /* plugin info */, + std::string /* actual_mime_type */) // Requests spellcheck for a word. IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_SpellCheck, |