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

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

Issue 6625064: Move the common child process messages into their own file. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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/common/child_thread.cc ('k') | chrome/common/render_messages_internal.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "build/build_config.h" 6 #include "build/build_config.h"
7 #include "ipc/ipc_message_macros.h" 7 #include "ipc/ipc_message_macros.h"
8 #include "ui/gfx/native_widget_types.h" 8 #include "ui/gfx/native_widget_types.h"
9 #include "webkit/glue/webcursor.h" 9 #include "webkit/glue/webcursor.h"
10 10
(...skipping 18 matching lines...) Expand all
29 29
30 // Allows a chrome plugin loaded in the browser process to send arbitrary 30 // Allows a chrome plugin loaded in the browser process to send arbitrary
31 // data to an instance of the same plugin loaded in a plugin process. 31 // data to an instance of the same plugin loaded in a plugin process.
32 IPC_MESSAGE_CONTROL1(PluginProcessMsg_PluginMessage, 32 IPC_MESSAGE_CONTROL1(PluginProcessMsg_PluginMessage,
33 std::vector<uint8> /* opaque data */) 33 std::vector<uint8> /* opaque data */)
34 34
35 // Tells the plugin process to notify every connected renderer of the pending 35 // Tells the plugin process to notify every connected renderer of the pending
36 // shutdown, so we don't mistake it for a crash. 36 // shutdown, so we don't mistake it for a crash.
37 IPC_MESSAGE_CONTROL0(PluginProcessMsg_NotifyRenderersOfPendingShutdown) 37 IPC_MESSAGE_CONTROL0(PluginProcessMsg_NotifyRenderersOfPendingShutdown)
38 38
39 // The following messages are used by all child processes, even though they
40 // are listed under PluginProcess. It seems overkill to define ChildProcess.
41 // Tells the child process it should stop.
42 IPC_MESSAGE_CONTROL0(PluginProcessMsg_AskBeforeShutdown)
43
44 // Sent in response to PluginProcessHostMsg_ShutdownRequest to tell the child
45 // process that it's safe to shutdown.
46 IPC_MESSAGE_CONTROL0(PluginProcessMsg_Shutdown)
47
48 #if defined(IPC_MESSAGE_LOG_ENABLED)
49 // Tell the child process to begin or end IPC message logging.
50 // Like above, this is used by all ChildProcesses.
51 IPC_MESSAGE_CONTROL1(PluginProcessMsg_SetIPCLoggingEnabled,
52 bool /* on or off */)
53 #endif
54
55 39
56 //----------------------------------------------------------------------------- 40 //-----------------------------------------------------------------------------
57 // PluginProcessHost messages 41 // PluginProcessHost messages
58 // These are messages sent from the plugin process to the browser process. 42 // These are messages sent from the plugin process to the browser process.
59 // Response to a PluginProcessMsg_CreateChannel message. 43 // Response to a PluginProcessMsg_CreateChannel message.
60 IPC_MESSAGE_CONTROL1(PluginProcessHostMsg_ChannelCreated, 44 IPC_MESSAGE_CONTROL1(PluginProcessHostMsg_ChannelCreated,
61 IPC::ChannelHandle /* channel_handle */) 45 IPC::ChannelHandle /* channel_handle */)
62 46
63 IPC_SYNC_MESSAGE_CONTROL0_1(PluginProcessHostMsg_GetPluginFinderUrl, 47 IPC_SYNC_MESSAGE_CONTROL0_1(PluginProcessHostMsg_GetPluginFinderUrl,
64 std::string /* plugin finder URL */) 48 std::string /* plugin finder URL */)
65 49
66 IPC_MESSAGE_CONTROL0(PluginProcessHostMsg_ShutdownRequest)
67
68 // Allows a chrome plugin loaded in a plugin process to send arbitrary 50 // Allows a chrome plugin loaded in a plugin process to send arbitrary
69 // data to an instance of the same plugin loaded in the browser process. 51 // data to an instance of the same plugin loaded in the browser process.
70 IPC_MESSAGE_CONTROL1(PluginProcessHostMsg_PluginMessage, 52 IPC_MESSAGE_CONTROL1(PluginProcessHostMsg_PluginMessage,
71 std::vector<uint8> /* opaque data */) 53 std::vector<uint8> /* opaque data */)
72 54
73 // Allows a chrome plugin loaded in a plugin process to send arbitrary 55 // Allows a chrome plugin loaded in a plugin process to send arbitrary
74 // data to an instance of the same plugin loaded in the browser process. 56 // data to an instance of the same plugin loaded in the browser process.
75 IPC_SYNC_MESSAGE_CONTROL1_1(PluginProcessHostMsg_PluginSyncMessage, 57 IPC_SYNC_MESSAGE_CONTROL1_1(PluginProcessHostMsg_PluginSyncMessage,
76 std::vector<uint8> /* opaque data */, 58 std::vector<uint8> /* opaque data */,
77 std::vector<uint8> /* opaque data response */) 59 std::vector<uint8> /* opaque data response */)
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 IPC_SYNC_MESSAGE_ROUTED1_2(NPObjectMsg_Construct, 497 IPC_SYNC_MESSAGE_ROUTED1_2(NPObjectMsg_Construct,
516 std::vector<NPVariant_Param> /* args */, 498 std::vector<NPVariant_Param> /* args */,
517 NPVariant_Param /* result_param */, 499 NPVariant_Param /* result_param */,
518 bool /* result */) 500 bool /* result */)
519 501
520 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate, 502 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate,
521 std::string /* script */, 503 std::string /* script */,
522 bool /* popups_allowed */, 504 bool /* popups_allowed */,
523 NPVariant_Param /* result_param */, 505 NPVariant_Param /* result_param */,
524 bool /* result */) 506 bool /* result */)
OLDNEW
« no previous file with comments | « chrome/common/child_thread.cc ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698