OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 // | |
5 // Multiply-included message file, hence no include guard. | |
6 | |
7 #include <stdint.h> | |
8 | |
9 #include "build/build_config.h" | |
10 #include "content/common/content_export.h" | |
11 #include "content/common/content_param_traits.h" | |
12 #include "content/public/common/common_param_traits.h" | |
13 #include "ipc/ipc_channel_handle.h" | |
14 #include "ipc/ipc_message_macros.h" | |
15 #include "ui/gfx/geometry/rect.h" | |
16 #include "ui/gfx/ipc/gfx_param_traits.h" | |
17 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" | |
18 #include "ui/gfx/native_widget_types.h" | |
19 | |
20 #undef IPC_MESSAGE_EXPORT | |
21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | |
22 | |
23 #define IPC_MESSAGE_START PluginProcessMsgStart | |
24 | |
25 //----------------------------------------------------------------------------- | |
26 // PluginProcess messages | |
27 // These are messages sent from the browser to the plugin process. | |
28 // Tells the plugin process to create a new channel for communication with a | |
29 // given renderer. The channel name is returned in a | |
30 // PluginProcessHostMsg_ChannelCreated message. The renderer ID is passed so | |
31 // that the plugin process reuses an existing channel to that process if it | |
32 // exists. This ID is a unique opaque identifier generated by the browser | |
33 // process. | |
34 IPC_MESSAGE_CONTROL2(PluginProcessMsg_CreateChannel, | |
35 int /* renderer_id */, | |
36 bool /* off_the_record */) | |
37 | |
38 // Tells the plugin process to notify every connected renderer of the pending | |
39 // shutdown, so we don't mistake it for a crash. | |
40 IPC_MESSAGE_CONTROL0(PluginProcessMsg_NotifyRenderersOfPendingShutdown) | |
41 | |
42 IPC_MESSAGE_CONTROL3(PluginProcessMsg_ClearSiteData, | |
43 std::string /* site */, | |
44 uint64_t /* flags */, | |
45 uint64_t /* max_age */) | |
46 | |
47 //----------------------------------------------------------------------------- | |
48 // PluginProcessHost messages | |
49 // These are messages sent from the plugin process to the browser process. | |
50 // Response to a PluginProcessMsg_CreateChannel message. | |
51 IPC_MESSAGE_CONTROL1(PluginProcessHostMsg_ChannelCreated, | |
52 IPC::ChannelHandle /* channel_handle */) | |
53 | |
54 IPC_MESSAGE_CONTROL1(PluginProcessHostMsg_ChannelDestroyed, | |
55 int /* renderer_id */) | |
56 | |
57 IPC_MESSAGE_CONTROL1(PluginProcessHostMsg_ClearSiteDataResult, | |
58 bool /* success */) | |
59 | |
60 #if defined(OS_MACOSX) | |
61 // On Mac OS X, we need the browser to keep track of plugin windows so | |
62 // that it can add and remove them from stacking groups, hide and show the | |
63 // menu bar, etc. We pass the window rect for convenience so that the | |
64 // browser can easily tell if the window is fullscreen. | |
65 | |
66 // Notifies the browser that the plugin has shown a window. | |
67 IPC_MESSAGE_CONTROL3(PluginProcessHostMsg_PluginShowWindow, | |
68 uint32_t /* window ID */, | |
69 gfx::Rect /* window rect */, | |
70 bool /* modal */) | |
71 | |
72 // Notifies the browser that the plugin has hidden a window. | |
73 IPC_MESSAGE_CONTROL2(PluginProcessHostMsg_PluginHideWindow, | |
74 uint32_t /* window ID */, | |
75 gfx::Rect /* window rect */) | |
76 | |
77 // Notifies the browser that a plugin instance has requested a cursor | |
78 // visibility change. | |
79 IPC_MESSAGE_CONTROL1(PluginProcessHostMsg_PluginSetCursorVisibility, | |
80 bool /* cursor visibility */) | |
81 #endif | |
OLD | NEW |