OLD | NEW |
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 "gfx/native_widget_types.h" | 7 #include "gfx/native_widget_types.h" |
8 #include "ipc/ipc_message_macros.h" | 8 #include "ipc/ipc_message_macros.h" |
9 #include "webkit/glue/webcursor.h" | 9 #include "webkit/glue/webcursor.h" |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 // Allows a chrome plugin loaded in the browser process to send arbitrary | 29 // Allows a chrome plugin loaded in the browser process to send arbitrary |
30 // data to an instance of the same plugin loaded in a plugin process. | 30 // data to an instance of the same plugin loaded in a plugin process. |
31 IPC_MESSAGE_CONTROL1(PluginProcessMsg_PluginMessage, | 31 IPC_MESSAGE_CONTROL1(PluginProcessMsg_PluginMessage, |
32 std::vector<uint8> /* opaque data */) | 32 std::vector<uint8> /* opaque data */) |
33 | 33 |
34 // Tells the plugin process to notify every connected renderer of the pending | 34 // Tells the plugin process to notify every connected renderer of the pending |
35 // shutdown, so we don't mistake it for a crash. | 35 // shutdown, so we don't mistake it for a crash. |
36 IPC_MESSAGE_CONTROL0(PluginProcessMsg_NotifyRenderersOfPendingShutdown) | 36 IPC_MESSAGE_CONTROL0(PluginProcessMsg_NotifyRenderersOfPendingShutdown) |
37 | 37 |
38 // The following messages are used by all child processes, even though they | |
39 // are listed under PluginProcess. It seems overkill to define ChildProcess. | |
40 // Tells the child process it should stop. | |
41 IPC_MESSAGE_CONTROL0(PluginProcessMsg_AskBeforeShutdown) | |
42 | |
43 // Sent in response to PluginProcessHostMsg_ShutdownRequest to tell the child | |
44 // process that it's safe to shutdown. | |
45 IPC_MESSAGE_CONTROL0(PluginProcessMsg_Shutdown) | |
46 | |
47 #if defined(IPC_MESSAGE_LOG_ENABLED) | |
48 // Tell the child process to begin or end IPC message logging. | |
49 // Like above, this is used by all ChildProcesses. | |
50 IPC_MESSAGE_CONTROL1(PluginProcessMsg_SetIPCLoggingEnabled, | |
51 bool /* on or off */) | |
52 #endif | |
53 | |
54 #if defined(OS_MACOSX) | 38 #if defined(OS_MACOSX) |
55 // Notifies a plugin process that keyboard focus has changed. If another | 39 // Notifies a plugin process that keyboard focus has changed. If another |
56 // plugin instance has received focus, the instance IDs is passed as a | 40 // plugin instance has received focus, the instance IDs is passed as a |
57 // parameter; if focus has been taken away from a plugin, 0 is passed. | 41 // parameter; if focus has been taken away from a plugin, 0 is passed. |
58 IPC_MESSAGE_CONTROL1(PluginProcessMsg_PluginFocusNotify, | 42 IPC_MESSAGE_CONTROL1(PluginProcessMsg_PluginFocusNotify, |
59 uint32 /* instance ID */) | 43 uint32 /* instance ID */) |
60 #endif | 44 #endif |
61 | 45 |
62 IPC_END_MESSAGES(PluginProcess) | 46 IPC_END_MESSAGES(PluginProcess) |
63 | 47 |
64 | 48 |
65 //----------------------------------------------------------------------------- | 49 //----------------------------------------------------------------------------- |
66 // PluginProcessHost messages | 50 // PluginProcessHost messages |
67 // These are messages sent from the plugin process to the browser process. | 51 // These are messages sent from the plugin process to the browser process. |
68 IPC_BEGIN_MESSAGES(PluginProcessHost) | 52 IPC_BEGIN_MESSAGES(PluginProcessHost) |
69 // Response to a PluginProcessMsg_CreateChannel message. | 53 // Response to a PluginProcessMsg_CreateChannel message. |
70 IPC_MESSAGE_CONTROL1(PluginProcessHostMsg_ChannelCreated, | 54 IPC_MESSAGE_CONTROL1(PluginProcessHostMsg_ChannelCreated, |
71 IPC::ChannelHandle /* channel_handle */) | 55 IPC::ChannelHandle /* channel_handle */) |
72 | 56 |
73 IPC_SYNC_MESSAGE_CONTROL0_1(PluginProcessHostMsg_GetPluginFinderUrl, | 57 IPC_SYNC_MESSAGE_CONTROL0_1(PluginProcessHostMsg_GetPluginFinderUrl, |
74 std::string /* plugin finder URL */) | 58 std::string /* plugin finder URL */) |
75 | 59 |
76 IPC_MESSAGE_CONTROL0(PluginProcessHostMsg_ShutdownRequest) | |
77 | |
78 // Allows a chrome plugin loaded in a plugin process to send arbitrary | 60 // Allows a chrome plugin loaded in a plugin process to send arbitrary |
79 // data to an instance of the same plugin loaded in the browser process. | 61 // data to an instance of the same plugin loaded in the browser process. |
80 IPC_MESSAGE_CONTROL1(PluginProcessHostMsg_PluginMessage, | 62 IPC_MESSAGE_CONTROL1(PluginProcessHostMsg_PluginMessage, |
81 std::vector<uint8> /* opaque data */) | 63 std::vector<uint8> /* opaque data */) |
82 | 64 |
83 // Allows a chrome plugin loaded in a plugin process to send arbitrary | 65 // Allows a chrome plugin loaded in a plugin process to send arbitrary |
84 // data to an instance of the same plugin loaded in the browser process. | 66 // data to an instance of the same plugin loaded in the browser process. |
85 IPC_SYNC_MESSAGE_CONTROL1_1(PluginProcessHostMsg_PluginSyncMessage, | 67 IPC_SYNC_MESSAGE_CONTROL1_1(PluginProcessHostMsg_PluginSyncMessage, |
86 std::vector<uint8> /* opaque data */, | 68 std::vector<uint8> /* opaque data */, |
87 std::vector<uint8> /* opaque data response */) | 69 std::vector<uint8> /* opaque data response */) |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 NPVariant_Param /* result_param */, | 494 NPVariant_Param /* result_param */, |
513 bool /* result */) | 495 bool /* result */) |
514 | 496 |
515 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate, | 497 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate, |
516 std::string /* script */, | 498 std::string /* script */, |
517 bool /* popups_allowed */, | 499 bool /* popups_allowed */, |
518 NPVariant_Param /* result_param */, | 500 NPVariant_Param /* result_param */, |
519 bool /* result */) | 501 bool /* result */) |
520 | 502 |
521 IPC_END_MESSAGES(NPObject) | 503 IPC_END_MESSAGES(NPObject) |
OLD | NEW |