| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 // Multiply-included message header, no traditional include guard. | 5 // Multiply-included message header, no traditional include guard. |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/process.h" | 10 #include "base/process.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // A embedder sends this message to the browser when it wants | 118 // A embedder sends this message to the browser when it wants |
| 119 // to resize a guest plugin container so that the guest is relaid out | 119 // to resize a guest plugin container so that the guest is relaid out |
| 120 // according to the new size. | 120 // according to the new size. |
| 121 IPC_SYNC_MESSAGE_ROUTED2_0(BrowserPluginHostMsg_ResizeGuest, | 121 IPC_SYNC_MESSAGE_ROUTED2_0(BrowserPluginHostMsg_ResizeGuest, |
| 122 int /* instance_id*/, | 122 int /* instance_id*/, |
| 123 BrowserPluginHostMsg_ResizeGuest_Params) | 123 BrowserPluginHostMsg_ResizeGuest_Params) |
| 124 | 124 |
| 125 // ----------------------------------------------------------------------------- | 125 // ----------------------------------------------------------------------------- |
| 126 // These messages are from the browser process to the embedder. | 126 // These messages are from the browser process to the embedder. |
| 127 | 127 |
| 128 // Once the swapped out guest RenderView has been created in the embedder render |
| 129 // process, the browser process informs the embedder of its routing ID. |
| 130 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_GuestContentWindowReady, |
| 131 int /* instance_id */, |
| 132 int /* source_routing_id */) |
| 133 |
| 134 IPC_STRUCT_BEGIN(BrowserPluginMsg_ReceiveMessage_Params) |
| 135 // The routing ID of the swapped out RenderView of the guest |
| 136 // in the embedder render process. |
| 137 IPC_STRUCT_MEMBER(int, source_routing_id) |
| 138 // The origin of the source frame. |
| 139 IPC_STRUCT_MEMBER(string16, source_origin) |
| 140 // The identifier of the source frame in the source process. |
| 141 IPC_STRUCT_MEMBER(int, source_frame_id) |
| 142 // The identifier of the target frame in the target process. |
| 143 IPC_STRUCT_MEMBER(int, target_frame_id) |
| 144 // The serialized script value. |
| 145 IPC_STRUCT_MEMBER(string16, data) |
| 146 IPC_STRUCT_END() |
| 147 |
| 148 // When a guest render process responds to its embedder's message, |
| 149 // the message is carried in BrowserPluginMsg_ReceiveMessage's paylod. |
| 150 // This IPC targets a particular browser plugin with the embedder |
| 151 // to fire a MessageEvent on its element. |
| 152 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ReceiveMessage, |
| 153 int /* instance_id */, |
| 154 BrowserPluginMsg_ReceiveMessage_Params /* params */) |
| 155 |
| 156 |
| 128 // When the guest navigates, the browser process informs the embedder through | 157 // When the guest navigates, the browser process informs the embedder through |
| 129 // the BrowserPluginMsg_DidNavigate message. | 158 // the BrowserPluginMsg_DidNavigate message. |
| 130 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_DidNavigate, | 159 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_DidNavigate, |
| 131 int /* instance_id */, | 160 int /* instance_id */, |
| 132 GURL /* url */, | 161 GURL /* url */, |
| 133 int /* process_id */) | 162 int /* process_id */) |
| 134 | 163 |
| 135 // When the guest crashes, the browser process informs the embedder through this | 164 // When the guest crashes, the browser process informs the embedder through this |
| 136 // message. | 165 // message. |
| 137 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestCrashed, | 166 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestCrashed, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, | 212 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, |
| 184 int /* instance_id */, | 213 int /* instance_id */, |
| 185 bool /* accept */) | 214 bool /* accept */) |
| 186 | 215 |
| 187 // The guest has damage it wants to convey to the embedder so that it can | 216 // The guest has damage it wants to convey to the embedder so that it can |
| 188 // update its backing store. | 217 // update its backing store. |
| 189 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, | 218 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, |
| 190 int /* instance_id */, | 219 int /* instance_id */, |
| 191 int /* message_id */, | 220 int /* message_id */, |
| 192 BrowserPluginMsg_UpdateRect_Params) | 221 BrowserPluginMsg_UpdateRect_Params) |
| OLD | NEW |