diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-01 01:48:52 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-01 01:48:52 +0000 |
commit | 829c2841a0e30b9f08453566ffc52d2c386a9045 (patch) | |
tree | b916ff2699e97a13f027d3e2cb60be781c0e18c8 /chrome/common/plugin_messages_internal.h | |
parent | 5c0b8e45fa1260f311d71073c8a9b89db199d992 (diff) | |
download | chromium_src-829c2841a0e30b9f08453566ffc52d2c386a9045.zip chromium_src-829c2841a0e30b9f08453566ffc52d2c386a9045.tar.gz chromium_src-829c2841a0e30b9f08453566ffc52d2c386a9045.tar.bz2 |
Port plugin messages.
Review URL: http://codereview.chromium.org/49050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12928 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/plugin_messages_internal.h')
-rw-r--r-- | chrome/common/plugin_messages_internal.h | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/chrome/common/plugin_messages_internal.h b/chrome/common/plugin_messages_internal.h index 61c53f0..11a0365 100644 --- a/chrome/common/plugin_messages_internal.h +++ b/chrome/common/plugin_messages_internal.h @@ -41,11 +41,6 @@ IPC_BEGIN_MESSAGES(PluginProcessHost) IPC_MESSAGE_CONTROL1(PluginProcessHostMsg_ChannelCreated, std::wstring /* channel_name */) - IPC_MESSAGE_ROUTED3(PluginProcessHostMsg_DownloadUrl, - std::string /* URL */, - int /* process id */, - HWND /* caller window */) - IPC_SYNC_MESSAGE_CONTROL0_1(PluginProcessHostMsg_GetPluginFinderUrl, std::string /* plugin finder URL */) @@ -77,6 +72,7 @@ IPC_BEGIN_MESSAGES(PluginProcessHost) int /* network error */, std::string /* proxy list */) +#if defined(OS_WIN) // Creates a child window of the given parent window on the UI thread. IPC_SYNC_MESSAGE_CONTROL1_1(PluginProcessHostMsg_CreateWindow, HWND /* parent */, @@ -86,6 +82,12 @@ IPC_BEGIN_MESSAGES(PluginProcessHost) IPC_MESSAGE_CONTROL1(PluginProcessHostMsg_DestroyWindow, HWND /* window */) + IPC_MESSAGE_ROUTED3(PluginProcessHostMsg_DownloadUrl, + std::string /* URL */, + int /* process id */, + HWND /* caller window */) +#endif + IPC_END_MESSAGES(PluginProcessHost) @@ -122,12 +124,13 @@ IPC_BEGIN_MESSAGES(Plugin) // plugin knows it can send more invalidates. IPC_MESSAGE_ROUTED0(PluginMsg_DidPaint) - IPC_SYNC_MESSAGE_ROUTED0_1(PluginMsg_Print, - PluginMsg_PrintResponse_Params /* params */) + IPC_SYNC_MESSAGE_ROUTED0_2(PluginMsg_Print, + base::SharedMemoryHandle /* shared_memory*/, + size_t /* size */) IPC_SYNC_MESSAGE_ROUTED0_2(PluginMsg_GetPluginScriptableObject, int /* route_id */, - void* /* npobject_ptr */) + intptr_t /* npobject_ptr */) IPC_SYNC_MESSAGE_ROUTED1_0(PluginMsg_DidFinishLoadWithReason, int /* reason */) @@ -173,7 +176,7 @@ IPC_BEGIN_MESSAGES(Plugin) std::wstring /* result */, bool /* success */, bool /* notify required */, - int /* notify data */) + intptr_t /* notify data */) IPC_MESSAGE_ROUTED2(PluginMsg_DidReceiveManualResponse, std::string /* url */, @@ -194,7 +197,7 @@ IPC_BEGIN_MESSAGES(Plugin) IPC_SYNC_MESSAGE_ROUTED3_0(PluginMsg_URLRequestRouted, std::string /* url */, bool /* notify_needed */, - HANDLE /* notify data */) + intptr_t /* notify data */) IPC_END_MESSAGES(Plugin) @@ -206,13 +209,17 @@ IPC_BEGIN_MESSAGES(PluginHost) // Sends the plugin window information to the renderer. // The window parameter is a handle to the window if the plugin is a windowed // plugin. It is NULL for windowless plugins. + IPC_SYNC_MESSAGE_ROUTED1_0(PluginHostMsg_SetWindow, + gfx::NativeViewId /* window */) + +#if defined(OS_WIN) // The modal_loop_pump_messages_event parameter is an event handle which is // passed in for windowless plugins and is used to indicate if messages // are to be pumped in sync calls to the plugin process. Currently used // in HandleEvent calls. - IPC_SYNC_MESSAGE_ROUTED2_0(PluginHostMsg_SetWindow, - HWND /* window */, + IPC_SYNC_MESSAGE_ROUTED1_0(PluginHostMsg_SetWindowlessPumpEvent, HANDLE /* modal_loop_pump_messages_event */) +#endif IPC_MESSAGE_ROUTED1(PluginHostMsg_URLRequest, PluginHostMsg_URLRequest_Params) @@ -226,12 +233,12 @@ IPC_BEGIN_MESSAGES(PluginHost) IPC_SYNC_MESSAGE_ROUTED1_2(PluginHostMsg_GetWindowScriptNPObject, int /* route id */, bool /* success */, - void* /* npobject_ptr */) + intptr_t /* npobject_ptr */) IPC_SYNC_MESSAGE_ROUTED1_2(PluginHostMsg_GetPluginElement, int /* route id */, bool /* success */, - void* /* npobject_ptr */) + intptr_t /* npobject_ptr */) IPC_MESSAGE_ROUTED3(PluginHostMsg_SetCookie, GURL /* url */, @@ -264,9 +271,9 @@ IPC_BEGIN_MESSAGES(PluginHost) IPC_MESSAGE_ROUTED5(PluginHostMsg_InitiateHTTPRangeRequest, std::string /* url */, std::string /* range_info */, - HANDLE /* existing_stream */, + intptr_t /* existing_stream */, bool /* notify_needed */, - HANDLE /* notify_data */) + intptr_t /* notify_data */) IPC_END_MESSAGES(PluginHost) |