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 "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 Loading... |
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 Loading... |
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 */) |
OLD | NEW |