Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Side by Side Diff: content/common/frame_messages.h

Issue 1312643002: Plumb opener information when creating RenderFrames and RenderFrameProxies for subframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@opener-CreateOpenerProxiesIfNeeded
Patch Set: Fix param ordering in RenderThreadImpl::OnCreateNewFrameProxy Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "cc/surfaces/surface_id.h" 8 #include "cc/surfaces/surface_id.h"
9 #include "cc/surfaces/surface_sequence.h" 9 #include "cc/surfaces/surface_sequence.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 IPC_STRUCT_MEMBER(int, surface_id) 315 IPC_STRUCT_MEMBER(int, surface_id)
316 316
317 // Tells the new RenderWidget whether it is initially hidden. 317 // Tells the new RenderWidget whether it is initially hidden.
318 IPC_STRUCT_MEMBER(bool, hidden) 318 IPC_STRUCT_MEMBER(bool, hidden)
319 IPC_STRUCT_END() 319 IPC_STRUCT_END()
320 320
321 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_Params) 321 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_Params)
322 // Specifies the routing ID of the new RenderFrame object. 322 // Specifies the routing ID of the new RenderFrame object.
323 IPC_STRUCT_MEMBER(int, routing_id) 323 IPC_STRUCT_MEMBER(int, routing_id)
324 324
325 // If a valid |proxy_routing_id| is provided, the new frame will be
326 // configured to replace the proxy on commit.
327 IPC_STRUCT_MEMBER(int, proxy_routing_id)
328
329 // Specifies the new frame's opener. The opener will be null if this is
330 // MSG_ROUTING_NONE.
331 IPC_STRUCT_MEMBER(int, opener_routing_id)
332
325 // The new frame should be created as a child of the object 333 // The new frame should be created as a child of the object
326 // identified by |parent_routing_id| or as top level if that is 334 // identified by |parent_routing_id| or as top level if that is
327 // MSG_ROUTING_NONE. 335 // MSG_ROUTING_NONE.
328 IPC_STRUCT_MEMBER(int, parent_routing_id) 336 IPC_STRUCT_MEMBER(int, parent_routing_id)
329 337
330 // Identifies the previous sibling of the new frame, so that the new frame is 338 // Identifies the previous sibling of the new frame, so that the new frame is
331 // inserted into the correct place in the frame tree. If this is 339 // inserted into the correct place in the frame tree. If this is
332 // MSG_ROUTING_NONE, the frame will be created as the leftmost child of its 340 // MSG_ROUTING_NONE, the frame will be created as the leftmost child of its
333 // parent frame, in front of any other children. 341 // parent frame, in front of any other children.
334 IPC_STRUCT_MEMBER(int, previous_sibling_routing_id) 342 IPC_STRUCT_MEMBER(int, previous_sibling_routing_id)
335 343
336 // If a valid |proxy_routing_id| is provided, the new frame will be
337 // configured to replace the proxy on commit.
338 IPC_STRUCT_MEMBER(int, proxy_routing_id)
339
340 // When the new frame has a parent, |replication_state| holds the new frame's 344 // When the new frame has a parent, |replication_state| holds the new frame's
341 // properties replicated from the process rendering the parent frame, such as 345 // properties replicated from the process rendering the parent frame, such as
342 // the new frame's sandbox flags. 346 // the new frame's sandbox flags.
343 IPC_STRUCT_MEMBER(content::FrameReplicationState, replication_state) 347 IPC_STRUCT_MEMBER(content::FrameReplicationState, replication_state)
344 348
345 // Specifies properties for a new RenderWidget that will be attached to the 349 // Specifies properties for a new RenderWidget that will be attached to the
346 // new RenderFrame (if one is needed). 350 // new RenderFrame (if one is needed).
347 IPC_STRUCT_MEMBER(FrameMsg_NewFrame_WidgetParams, widget_params) 351 IPC_STRUCT_MEMBER(FrameMsg_NewFrame_WidgetParams, widget_params)
348 IPC_STRUCT_END() 352 IPC_STRUCT_END()
349 353
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 IPC_MESSAGE_ROUTED1(FrameMsg_UpdateOpener, int /* opener_routing_id */) 450 IPC_MESSAGE_ROUTED1(FrameMsg_UpdateOpener, int /* opener_routing_id */)
447 451
448 // Requests that the RenderFrame send back a response after waiting for the 452 // Requests that the RenderFrame send back a response after waiting for the
449 // commit, activation and frame swap of the current DOM tree in blink. 453 // commit, activation and frame swap of the current DOM tree in blink.
450 IPC_MESSAGE_ROUTED1(FrameMsg_VisualStateRequest, uint64 /* id */) 454 IPC_MESSAGE_ROUTED1(FrameMsg_VisualStateRequest, uint64 /* id */)
451 455
452 // Instructs the renderer to create a new RenderFrame object. 456 // Instructs the renderer to create a new RenderFrame object.
453 IPC_MESSAGE_CONTROL1(FrameMsg_NewFrame, FrameMsg_NewFrame_Params /* params */) 457 IPC_MESSAGE_CONTROL1(FrameMsg_NewFrame, FrameMsg_NewFrame_Params /* params */)
454 458
455 // Instructs the renderer to create a new RenderFrameProxy object with 459 // Instructs the renderer to create a new RenderFrameProxy object with
456 // |routing_id|. The new proxy should be created as a child of the object 460 // |routing_id|. |render_view_routing_id| identifies the
457 // identified by |parent_routing_id| or as top level if that is 461 // RenderView to be associated with this proxy. The new proxy's opener should
462 // be set to the object identified by |opener_routing_id|, or to null if that
463 // is MSG_ROUTING_NONE. The new proxy should be created as a child of the
464 // object identified by |parent_routing_id| or as top level if that is
458 // MSG_ROUTING_NONE. 465 // MSG_ROUTING_NONE.
459 IPC_MESSAGE_CONTROL4(FrameMsg_NewFrameProxy, 466 IPC_MESSAGE_CONTROL5(FrameMsg_NewFrameProxy,
460 int /* routing_id */, 467 int /* routing_id */,
468 int /* render_view_routing_id */,
469 int /* opener_routing_id */,
461 int /* parent_routing_id */, 470 int /* parent_routing_id */,
462 int /* render_view_routing_id */,
463 content::FrameReplicationState /* replication_state */) 471 content::FrameReplicationState /* replication_state */)
464 472
465 // Tells the renderer to perform the specified navigation, interrupting any 473 // Tells the renderer to perform the specified navigation, interrupting any
466 // existing navigation. 474 // existing navigation.
467 IPC_MESSAGE_ROUTED3(FrameMsg_Navigate, 475 IPC_MESSAGE_ROUTED3(FrameMsg_Navigate,
468 content::CommonNavigationParams, /* common_params */ 476 content::CommonNavigationParams, /* common_params */
469 content::StartNavigationParams, /* start_params */ 477 content::StartNavigationParams, /* start_params */
470 content::RequestNavigationParams /* request_params */) 478 content::RequestNavigationParams /* request_params */)
471 479
472 // Instructs the renderer to invoke the frame's beforeunload event handler. 480 // Instructs the renderer to invoke the frame's beforeunload event handler.
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 GURL /* target URL */) 1046 GURL /* target URL */)
1039 1047
1040 #if defined(OS_MACOSX) || defined(OS_ANDROID) 1048 #if defined(OS_MACOSX) || defined(OS_ANDROID)
1041 1049
1042 // Message to show/hide a popup menu using native controls. 1050 // Message to show/hide a popup menu using native controls.
1043 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 1051 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
1044 FrameHostMsg_ShowPopup_Params) 1052 FrameHostMsg_ShowPopup_Params)
1045 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 1053 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
1046 1054
1047 #endif 1055 #endif
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698