Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: chrome/common/plugin_messages_internal.h

Issue 42054: Stop using renderer specific host ids in ResourceDispatcher. This allows it ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/tab_contents/web_contents_view_win.cc ('k') | chrome/plugin/plugin_channel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/shared_memory.h" 5 #include "base/shared_memory.h"
6 #include "chrome/common/ipc_message_macros.h" 6 #include "chrome/common/ipc_message_macros.h"
7 #include "webkit/glue/webcursor.h" 7 #include "webkit/glue/webcursor.h"
8 8
9 //----------------------------------------------------------------------------- 9 //-----------------------------------------------------------------------------
10 // PluginProcess messages 10 // PluginProcess messages
11 // These are messages sent from the browser to the plugin process. 11 // These are messages sent from the browser to the plugin process.
12 IPC_BEGIN_MESSAGES(PluginProcess) 12 IPC_BEGIN_MESSAGES(PluginProcess)
13 // Tells the plugin process to create a new channel for communication with a 13 // Tells the plugin process to create a new channel for communication with a
14 // renderer. The channel name is returned in a 14 // renderer. The channel name is returned in a
15 // PluginProcessHostMsg_ChannelCreated message. 15 // PluginProcessHostMsg_ChannelCreated message.
16 // The renderer_handle is the handle of the renderer process requesting 16 IPC_MESSAGE_CONTROL0(PluginProcessMsg_CreateChannel)
17 // the channel. It has to be valid in the context of the plugin process.
18 IPC_MESSAGE_CONTROL2(PluginProcessMsg_CreateChannel,
19 int /* process_id */,
20 HANDLE /* renderer handle */)
21 17
22 IPC_MESSAGE_CONTROL1(PluginProcessMsg_ShutdownResponse, 18 IPC_MESSAGE_CONTROL1(PluginProcessMsg_ShutdownResponse,
23 bool /* ok to shutdown */) 19 bool /* ok to shutdown */)
24 20
25 // Allows a chrome plugin loaded in the browser process to send arbitrary 21 // Allows a chrome plugin loaded in the browser process to send arbitrary
26 // data to an instance of the same plugin loaded in a plugin process. 22 // data to an instance of the same plugin loaded in a plugin process.
27 IPC_MESSAGE_CONTROL1(PluginProcessMsg_PluginMessage, 23 IPC_MESSAGE_CONTROL1(PluginProcessMsg_PluginMessage,
28 std::vector<uint8> /* opaque data */) 24 std::vector<uint8> /* opaque data */)
29 25
30 IPC_MESSAGE_CONTROL0(PluginProcessMsg_BrowserShutdown) 26 IPC_MESSAGE_CONTROL0(PluginProcessMsg_BrowserShutdown)
31 27
32 IPC_END_MESSAGES(PluginProcess) 28 IPC_END_MESSAGES(PluginProcess)
33 29
34 30
35 //----------------------------------------------------------------------------- 31 //-----------------------------------------------------------------------------
36 // PluginProcessHost messages 32 // PluginProcessHost messages
37 // These are messages sent from the plugin process to the browser process. 33 // These are messages sent from the plugin process to the browser process.
38 IPC_BEGIN_MESSAGES(PluginProcessHost) 34 IPC_BEGIN_MESSAGES(PluginProcessHost)
39 // Response to a PluginProcessMsg_CreateChannel message. 35 // Response to a PluginProcessMsg_CreateChannel message.
40 IPC_MESSAGE_CONTROL2(PluginProcessHostMsg_ChannelCreated, 36 IPC_MESSAGE_CONTROL1(PluginProcessHostMsg_ChannelCreated,
41 int /* process_id */,
42 std::wstring /* channel_name */) 37 std::wstring /* channel_name */)
43 38
44 IPC_MESSAGE_ROUTED3(PluginProcessHostMsg_DownloadUrl, 39 IPC_MESSAGE_ROUTED3(PluginProcessHostMsg_DownloadUrl,
45 std::string /* URL */, 40 std::string /* URL */,
46 int /* process id */, 41 int /* process id */,
47 HWND /* caller window */) 42 HWND /* caller window */)
48 43
49 IPC_SYNC_MESSAGE_CONTROL0_1(PluginProcessHostMsg_GetPluginFinderUrl, 44 IPC_SYNC_MESSAGE_CONTROL0_1(PluginProcessHostMsg_GetPluginFinderUrl,
50 std::string /* plugin finder URL */) 45 std::string /* plugin finder URL */)
51 46
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate, 310 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate,
316 std::string /* script */, 311 std::string /* script */,
317 bool /* popups_allowed */, 312 bool /* popups_allowed */,
318 NPVariant_Param /* result_param */, 313 NPVariant_Param /* result_param */,
319 bool /* result */) 314 bool /* result */)
320 315
321 IPC_SYNC_MESSAGE_ROUTED1_0(NPObjectMsg_SetException, 316 IPC_SYNC_MESSAGE_ROUTED1_0(NPObjectMsg_SetException,
322 std::string /* message */) 317 std::string /* message */)
323 318
324 IPC_END_MESSAGES(NPObject) 319 IPC_END_MESSAGES(NPObject)
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/web_contents_view_win.cc ('k') | chrome/plugin/plugin_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698