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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 // according to the new size. | 220 // according to the new size. |
221 IPC_SYNC_MESSAGE_ROUTED2_0(BrowserPluginHostMsg_ResizeGuest, | 221 IPC_SYNC_MESSAGE_ROUTED2_0(BrowserPluginHostMsg_ResizeGuest, |
222 int /* instance_id*/, | 222 int /* instance_id*/, |
223 BrowserPluginHostMsg_ResizeGuest_Params) | 223 BrowserPluginHostMsg_ResizeGuest_Params) |
224 | 224 |
225 // ----------------------------------------------------------------------------- | 225 // ----------------------------------------------------------------------------- |
226 // These messages are from the browser process to the embedder. | 226 // These messages are from the browser process to the embedder. |
227 | 227 |
228 // Once the swapped out guest RenderView has been created in the embedder render | 228 // Once the swapped out guest RenderView has been created in the embedder render |
229 // process, the browser process informs the embedder of its routing ID. | 229 // process, the browser process informs the embedder of its routing ID. |
230 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_GuestContentWindowReady, | 230 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_GuestContentWindowReady, |
231 int /* instance_id */, | 231 int /* instance_id */, |
232 int /* source_routing_id */) | 232 int /* source_routing_id */) |
233 | 233 |
234 // When the guest begins to load a page, the browser process informs the | 234 // When the guest begins to load a page, the browser process informs the |
235 // embedder through the BrowserPluginMsg_LoadStart message. | 235 // embedder through the BrowserPluginMsg_LoadStart message. |
236 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_LoadStart, | 236 IPC_MESSAGE_ROUTED3(BrowserPluginMsg_LoadStart, |
237 int /* instance_id */, | 237 int /* instance_id */, |
238 GURL /* url */, | 238 GURL /* url */, |
239 bool /* is_top_level */) | 239 bool /* is_top_level */) |
240 | 240 |
241 // If the guest fails to commit a page load then it will inform the | 241 // If the guest fails to commit a page load then it will inform the |
242 // embedder through the BrowserPluginMsg_LoadAbort. A description | 242 // embedder through the BrowserPluginMsg_LoadAbort. A description |
243 // of the error will be stored in |type|. The list of known error | 243 // of the error will be stored in |type|. The list of known error |
244 // types can be found in net/base/net_error_list.h. | 244 // types can be found in net/base/net_error_list.h. |
245 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_LoadAbort, | 245 IPC_MESSAGE_ROUTED4(BrowserPluginMsg_LoadAbort, |
246 int /* instance_id */, | 246 int /* instance_id */, |
247 GURL /* url */, | 247 GURL /* url */, |
248 bool /* is_top_level */, | 248 bool /* is_top_level */, |
249 std::string /* type */) | 249 std::string /* type */) |
250 | 250 |
251 // When the guest redirects a navigation, the browser process informs the | 251 // When the guest redirects a navigation, the browser process informs the |
252 // embedder through the BrowserPluginMsg_LoadRedirect message. | 252 // embedder through the BrowserPluginMsg_LoadRedirect message. |
253 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_LoadRedirect, | 253 IPC_MESSAGE_ROUTED4(BrowserPluginMsg_LoadRedirect, |
254 int /* instance_id */, | 254 int /* instance_id */, |
255 GURL /* old_url */, | 255 GURL /* old_url */, |
256 GURL /* new_url */, | 256 GURL /* new_url */, |
257 bool /* is_top_level */) | 257 bool /* is_top_level */) |
258 | 258 |
259 // When the guest commits a navigation, the browser process informs | 259 // When the guest commits a navigation, the browser process informs |
260 // the embedder through the BrowserPluginMsg_DidCommit message. | 260 // the embedder through the BrowserPluginMsg_DidCommit message. |
261 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_LoadCommit, | 261 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_LoadCommit, |
262 int /* instance_id */, | 262 int /* instance_id */, |
263 BrowserPluginMsg_LoadCommit_Params) | 263 BrowserPluginMsg_LoadCommit_Params) |
264 | 264 |
265 // When the guest page has completed loading (including subframes), the browser | 265 // When the guest page has completed loading (including subframes), the browser |
266 // process informs the embedder through the BrowserPluginMsg_LoadStop message. | 266 // process informs the embedder through the BrowserPluginMsg_LoadStop message. |
267 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_LoadStop, | 267 IPC_MESSAGE_ROUTED1(BrowserPluginMsg_LoadStop, |
268 int /* instance_id */) | 268 int /* instance_id */) |
269 | 269 |
270 // When the guest crashes, the browser process informs the embedder through this | 270 // When the guest crashes, the browser process informs the embedder through this |
271 // message. | 271 // message. |
272 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_GuestGone, | 272 IPC_MESSAGE_ROUTED3(BrowserPluginMsg_GuestGone, |
273 int /* instance_id */, | 273 int /* instance_id */, |
274 int /* process_id */, | 274 int /* process_id */, |
275 int /* This is really base::TerminationStatus */) | 275 int /* This is really base::TerminationStatus */) |
276 | 276 |
277 // When the user tabs to the end of the tab stops of a guest, the browser | 277 // When the user tabs to the end of the tab stops of a guest, the browser |
278 // process informs the embedder to tab out of the browser plugin. | 278 // process informs the embedder to tab out of the browser plugin. |
279 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_AdvanceFocus, | 279 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_AdvanceFocus, |
280 int /* instance_id */, | 280 int /* instance_id */, |
281 bool /* reverse */) | 281 bool /* reverse */) |
282 | 282 |
283 // When the guest starts/stops listening to touch events, it needs to notify the | 283 // When the guest starts/stops listening to touch events, it needs to notify the |
284 // plugin in the embedder about it. | 284 // plugin in the embedder about it. |
285 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, | 285 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_ShouldAcceptTouchEvents, |
286 int /* instance_id */, | 286 int /* instance_id */, |
287 bool /* accept */) | 287 bool /* accept */) |
288 | 288 |
289 // Inform the embedder of the cursor the guest wishes to display. | 289 // Inform the embedder of the cursor the guest wishes to display. |
290 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetCursor, | 290 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_SetCursor, |
291 int /* instance_id */, | 291 int /* instance_id */, |
292 WebCursor /* cursor */) | 292 WebCursor /* cursor */) |
293 | 293 |
294 // The guest has damage it wants to convey to the embedder so that it can | 294 // The guest has damage it wants to convey to the embedder so that it can |
295 // update its backing store. | 295 // update its backing store. |
296 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, | 296 IPC_MESSAGE_ROUTED3(BrowserPluginMsg_UpdateRect, |
297 int /* instance_id */, | 297 int /* instance_id */, |
298 int /* message_id */, | 298 int /* message_id */, |
299 BrowserPluginMsg_UpdateRect_Params) | 299 BrowserPluginMsg_UpdateRect_Params) |
300 | 300 |
301 // Requests the renderer to find out if a browser plugin is at position | 301 // Requests the renderer to find out if a browser plugin is at position |
302 // (|x|, |y|) within the embedder. | 302 // (|x|, |y|) within the embedder. |
303 // The response message is BrowserPluginHostMsg_PluginAtPositionResponse. | 303 // The response message is BrowserPluginHostMsg_PluginAtPositionResponse. |
304 // The |request_id| uniquely identifies a request from an embedder. | 304 // The |request_id| uniquely identifies a request from an embedder. |
305 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_PluginAtPositionRequest, | 305 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_PluginAtPositionRequest, |
306 int /* source_routing_id */, | 306 int /* request_id */, |
307 int /* request_id */, | 307 gfx::Point /* position */) |
308 gfx::Point /* position */) | |
OLD | NEW |