diff options
author | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-05 18:55:42 +0000 |
---|---|---|
committer | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-05 18:55:42 +0000 |
commit | 51b63f67089e9c8dbc417e5770a4286f6944aa54 (patch) | |
tree | b9edd407d80141532573680986e30aad0d834b2e /chrome/common/render_messages.h | |
parent | ffeb189d9a703fc6e0820188c5aeb29a2ec9cf82 (diff) | |
download | chromium_src-51b63f67089e9c8dbc417e5770a4286f6944aa54.zip chromium_src-51b63f67089e9c8dbc417e5770a4286f6944aa54.tar.gz chromium_src-51b63f67089e9c8dbc417e5770a4286f6944aa54.tar.bz2 |
Use a placeholder instead of the default plugin for missing plug-ins on Mac and Linux.
BUG=62079
TEST=Missing plug-in placeholder looks different
Review URL: http://codereview.chromium.org/7990005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104144 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages.h')
-rw-r--r-- | chrome/common/render_messages.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h index 6bd830a..7e09b6e 100644 --- a/chrome/common/render_messages.h +++ b/chrome/common/render_messages.h @@ -25,6 +25,7 @@ #include "chrome/common/thumbnail_score.h" #include "chrome/common/translate_errors.h" #include "content/common/common_param_traits.h" +#include "content/common/webkit_param_traits.h" #include "ipc/ipc_message_macros.h" #include "ipc/ipc_platform_file.h" #include "third_party/skia/include/core/SkBitmap.h" @@ -50,6 +51,22 @@ enum ViewHostMsg_JavaScriptStressTestControl_Commands { kJavaScriptStressTestPrepareStressRun = 1, }; +// This enum is inside a struct so that we can forward-declare the struct in +// others headers without having to include this one. +struct ChromeViewHostMsg_GetPluginInfo_Status { + // TODO(bauerb): Add more status values (blocked, click-to-play, out of date, + // requires authorization). + enum Value { + kAllowed, + kDisabled, + kNotFound, + }; + + ChromeViewHostMsg_GetPluginInfo_Status() : value(kAllowed) {} + + Value value; +}; + namespace IPC { #if defined(OS_POSIX) && !defined(USE_AURA) @@ -91,12 +108,17 @@ struct ParamTraits<ContentSettings> { #define IPC_MESSAGE_START ChromeMsgStart +IPC_ENUM_TRAITS(ChromeViewHostMsg_GetPluginInfo_Status::Value) IPC_ENUM_TRAITS(InstantCompleteBehavior) IPC_ENUM_TRAITS(search_provider::OSDDType) IPC_ENUM_TRAITS(search_provider::InstallState) IPC_ENUM_TRAITS(TranslateErrors::Type) IPC_ENUM_TRAITS(WebKit::WebConsoleMessage::Level) +IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status) +IPC_STRUCT_TRAITS_MEMBER(value) +IPC_STRUCT_TRAITS_END() + IPC_STRUCT_TRAITS_BEGIN(ThumbnailScore) IPC_STRUCT_TRAITS_MEMBER(boring_score) IPC_STRUCT_TRAITS_MEMBER(good_clipping) @@ -384,6 +406,19 @@ IPC_SYNC_MESSAGE_CONTROL2_1(ChromeViewHostMsg_GetPluginContentSetting, std::string /* resource */, ContentSetting /* setting */) +// Return information about a plugin for the given URL and MIME type. +// In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows +// about specific reasons why a plug-in can't be used, for example because it's +// disabled. +IPC_SYNC_MESSAGE_CONTROL4_3(ChromeViewHostMsg_GetPluginInfo, + int /* render_view_id */, + GURL /* url */, + GURL /* top origin url */, + std::string /* mime_type */, + ChromeViewHostMsg_GetPluginInfo_Status /* status */, + webkit::WebPluginInfo /* plugin */, + std::string /* actual_mime_type */) + // Specifies the URL as the first parameter (a wstring) and thumbnail as // binary data as the second parameter. IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_Thumbnail, |