| 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/content_param_traits.h" | 9 #include "content/common/content_param_traits.h" |
| 10 #include "content/common/frame_message_enums.h" | 10 #include "content/common/frame_message_enums.h" |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 content::CustomContextMenuContext /* custom_context */, | 285 content::CustomContextMenuContext /* custom_context */, |
| 286 unsigned /* action */) | 286 unsigned /* action */) |
| 287 | 287 |
| 288 // Tells the renderer to perform the specified navigation, interrupting any | 288 // Tells the renderer to perform the specified navigation, interrupting any |
| 289 // existing navigation. | 289 // existing navigation. |
| 290 IPC_MESSAGE_ROUTED1(FrameMsg_Navigate, FrameMsg_Navigate_Params) | 290 IPC_MESSAGE_ROUTED1(FrameMsg_Navigate, FrameMsg_Navigate_Params) |
| 291 | 291 |
| 292 // ----------------------------------------------------------------------------- | 292 // ----------------------------------------------------------------------------- |
| 293 // Messages sent from the renderer to the browser. | 293 // Messages sent from the renderer to the browser. |
| 294 | 294 |
| 295 // Sent by the renderer when a child frame is created in the renderer. The | 295 // Sent by the renderer when a child frame is created in the renderer. |
| 296 // |parent_frame_id| and |frame_id| are NOT routing ids. They are | |
| 297 // renderer-allocated identifiers used for tracking a frame's creation. | |
| 298 // | 296 // |
| 299 // Each of these messages will have a corresponding FrameHostMsg_Detach message | 297 // Each of these messages will have a corresponding FrameHostMsg_Detach message |
| 300 // sent when the frame is detached from the DOM. | 298 // sent when the frame is detached from the DOM. |
| 301 // | 299 IPC_SYNC_MESSAGE_CONTROL2_1(FrameHostMsg_CreateChildFrame, |
| 302 // TOOD(ajwong): replace parent_render_frame_id and frame_id with just the | 300 int32 /* parent_routing_id */, |
| 303 // routing ids. | |
| 304 IPC_SYNC_MESSAGE_CONTROL4_1(FrameHostMsg_CreateChildFrame, | |
| 305 int32 /* parent_render_frame_id */, | |
| 306 int64 /* parent_frame_id */, | |
| 307 int64 /* frame_id */, | |
| 308 std::string /* frame_name */, | 301 std::string /* frame_name */, |
| 309 int /* new_render_frame_id */) | 302 int /* new_routing_id */) |
| 310 | 303 |
| 311 // Sent by the renderer to the parent RenderFrameHost when a child frame is | 304 // Sent by the renderer to the parent RenderFrameHost when a child frame is |
| 312 // detached from the DOM. | 305 // detached from the DOM. |
| 313 IPC_MESSAGE_ROUTED2(FrameHostMsg_Detach, | 306 IPC_MESSAGE_ROUTED0(FrameHostMsg_Detach) |
| 314 int64 /* parent_frame_id */, | |
| 315 int64 /* frame_id */) | |
| 316 | 307 |
| 317 // Sent when the renderer starts a provisional load for a frame. | 308 // Sent when the renderer starts a provisional load for a frame. |
| 318 IPC_MESSAGE_ROUTED4(FrameHostMsg_DidStartProvisionalLoadForFrame, | 309 IPC_MESSAGE_ROUTED4(FrameHostMsg_DidStartProvisionalLoadForFrame, |
| 319 int64 /* frame_id */, | 310 int64 /* frame_id */, |
| 320 int64 /* parent_frame_id */, | 311 int64 /* parent_frame_id */, |
| 321 bool /* true if it is the main frame */, | 312 bool /* true if it is the main frame */, |
| 322 GURL /* url */) | 313 GURL /* url */) |
| 323 | 314 |
| 324 // Sent when the renderer fails a provisional load with an error. | 315 // Sent when the renderer fails a provisional load with an error. |
| 325 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFailProvisionalLoadWithError, | 316 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFailProvisionalLoadWithError, |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 // Instructs the frame to swap out for a cross-site transition, including | 420 // Instructs the frame to swap out for a cross-site transition, including |
| 430 // running the unload event handler. Expects a SwapOut_ACK message when | 421 // running the unload event handler. Expects a SwapOut_ACK message when |
| 431 // finished. | 422 // finished. |
| 432 IPC_MESSAGE_ROUTED0(FrameMsg_SwapOut) | 423 IPC_MESSAGE_ROUTED0(FrameMsg_SwapOut) |
| 433 | 424 |
| 434 // Used to tell the parent that the user right clicked on an area of the | 425 // Used to tell the parent that the user right clicked on an area of the |
| 435 // content area, and a context menu should be shown for it. The params | 426 // content area, and a context menu should be shown for it. The params |
| 436 // object contains information about the node(s) that were selected when the | 427 // object contains information about the node(s) that were selected when the |
| 437 // user right clicked. | 428 // user right clicked. |
| 438 IPC_MESSAGE_ROUTED1(FrameHostMsg_ContextMenu, content::ContextMenuParams) | 429 IPC_MESSAGE_ROUTED1(FrameHostMsg_ContextMenu, content::ContextMenuParams) |
| OLD | NEW |