Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // IPC messages for interacting with frames. | 5 // IPC messages for interacting with frames. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
| 9 #include "content/common/frame_param.h" | |
| 9 #include "content/public/common/common_param_traits.h" | 10 #include "content/public/common/common_param_traits.h" |
| 10 #include "ipc/ipc_message_macros.h" | 11 #include "ipc/ipc_message_macros.h" |
| 12 #include "url/gurl.h" | |
| 11 | 13 |
| 12 #undef IPC_MESSAGE_EXPORT | 14 #undef IPC_MESSAGE_EXPORT |
| 13 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 14 | 16 |
| 15 #define IPC_MESSAGE_START FrameMsgStart | 17 #define IPC_MESSAGE_START FrameMsgStart |
| 16 | 18 |
| 19 // ----------------------------------------------------------------------------- | |
| 20 // Messages sent from the browser to the renderer. | |
| 21 | |
| 22 // When HW accelerated buffers are swapped in an out-of-process child frame | |
| 23 // renderer, the message is forwarded to the embedding frame to notify it of | |
| 24 // a new texture available for compositing. When the buffer has finished | |
| 25 // presenting, a FrameHostMsg_BuffersSwappedACK should be sent back to | |
| 26 // gpu host that produced this buffer. | |
| 27 // | |
| 28 // This is used in the non-ubercompe HW accelerated compositing path. | |
|
nasko
2013/12/21 00:39:39
nit: Extra e in ubercomp.
| |
| 29 IPC_MESSAGE_ROUTED1(FrameMsg_BuffersSwapped, | |
| 30 FrameMsg_BuffersSwapped_Params /* params */) | |
| 31 | |
| 32 // Notifies the embedding frame that a new CompositorFrame is ready to be | |
| 33 // presented. When the frame finishes presenting, a matching | |
| 34 // FrameHostMsg_CompositorFrameSwappedACK should be sent back to the | |
| 35 // RenderViewHost that was produced the CompositorFrame. | |
| 36 // | |
| 37 // This is used in the ubercomp compositing path. | |
|
nasko
2013/12/21 00:39:39
Kudos on add the extra clarification on which path
| |
| 38 IPC_MESSAGE_ROUTED1(FrameMsg_CompositorFrameSwapped, | |
| 39 FrameMsg_CompositorFrameSwapped_Params /* params */) | |
| 40 | |
| 41 // ----------------------------------------------------------------------------- | |
| 42 // Messages sent from the renderer to the browser. | |
| 43 | |
| 17 // Sent by the renderer when a child frame is created in the renderer. The | 44 // Sent by the renderer when a child frame is created in the renderer. The |
| 18 // |parent_frame_id| and |frame_id| are NOT routing ids. They are | 45 // |parent_frame_id| and |frame_id| are NOT routing ids. They are |
| 19 // renderer-allocated identifiers used for tracking a frame's creation. | 46 // renderer-allocated identifiers used for tracking a frame's creation. |
| 20 // | 47 // |
| 21 // Each of these messages will have a corresponding FrameHostMsg_Detach message | 48 // Each of these messages will have a corresponding FrameHostMsg_Detach message |
| 22 // sent when the frame is detached from the DOM. | 49 // sent when the frame is detached from the DOM. |
| 23 // | 50 // |
| 24 // TOOD(ajwong): replace parent_render_frame_id and frame_id with just the | 51 // TOOD(ajwong): replace parent_render_frame_id and frame_id with just the |
| 25 // routing ids. | 52 // routing ids. |
| 26 IPC_SYNC_MESSAGE_CONTROL4_1(FrameHostMsg_CreateChildFrame, | 53 IPC_SYNC_MESSAGE_CONTROL4_1(FrameHostMsg_CreateChildFrame, |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 78 // create a plugin. The browser will create the plugin process if | 105 // create a plugin. The browser will create the plugin process if |
| 79 // necessary, and will return a handle to the channel on success. | 106 // necessary, and will return a handle to the channel on success. |
| 80 // On error an empty string is returned. | 107 // On error an empty string is returned. |
| 81 IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin, | 108 IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin, |
| 82 int /* render_frame_id */, | 109 int /* render_frame_id */, |
| 83 GURL /* url */, | 110 GURL /* url */, |
| 84 GURL /* page_url */, | 111 GURL /* page_url */, |
| 85 std::string /* mime_type */, | 112 std::string /* mime_type */, |
| 86 IPC::ChannelHandle /* channel_handle */, | 113 IPC::ChannelHandle /* channel_handle */, |
| 87 content::WebPluginInfo /* info */) | 114 content::WebPluginInfo /* info */) |
| 115 | |
| 116 // Acknowledge that we presented a HW buffer and provide a sync point | |
| 117 // to specify the location in the command stream when the compositor | |
| 118 // is no longer using it. | |
| 119 // | |
| 120 // See FrameMsg_BuffersSwapped. | |
| 121 IPC_MESSAGE_ROUTED1(FrameHostMsg_BuffersSwappedACK, | |
| 122 FrameHostMsg_BuffersSwappedACK_Params /* params */) | |
| 123 | |
| 124 // Acknowledge that we presented an ubercomp frame. | |
| 125 // | |
| 126 // See FrameMsg_CompositorFrameSwapped | |
| 127 IPC_MESSAGE_ROUTED1(FrameHostMsg_CompositorFrameSwappedACK, | |
| 128 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) | |
| 129 | |
| OLD | NEW |