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

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: Add NewFrameProxy plumbing and test 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
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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 // Identifies the previous sibling of the new frame, so that the new frame is 330 // 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 331 // 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 332 // MSG_ROUTING_NONE, the frame will be created as the leftmost child of its
333 // parent frame, in front of any other children. 333 // parent frame, in front of any other children.
334 IPC_STRUCT_MEMBER(int, previous_sibling_routing_id) 334 IPC_STRUCT_MEMBER(int, previous_sibling_routing_id)
335 335
336 // If a valid |proxy_routing_id| is provided, the new frame will be 336 // If a valid |proxy_routing_id| is provided, the new frame will be
337 // configured to replace the proxy on commit. 337 // configured to replace the proxy on commit.
338 IPC_STRUCT_MEMBER(int, proxy_routing_id) 338 IPC_STRUCT_MEMBER(int, proxy_routing_id)
339 339
340 // Specifies the new frame's opener. The opener will be null if this is
341 // MSG_ROUTING_NONE.
342 IPC_STRUCT_MEMBER(int, opener_routing_id)
343
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
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|. The new proxy should be created as a child of the object
457 // identified by |parent_routing_id| or as top level if that is 461 // identified by |parent_routing_id| or as top level if that is
458 // MSG_ROUTING_NONE. 462 // MSG_ROUTING_NONE. The new proxy's opener should be set to the object
459 IPC_MESSAGE_CONTROL4(FrameMsg_NewFrameProxy, 463 // identified by |opener_routing_id|, or to null if that is MSG_ROUTING_NONE.
464 IPC_MESSAGE_CONTROL5(FrameMsg_NewFrameProxy,
460 int /* routing_id */, 465 int /* routing_id */,
461 int /* parent_routing_id */, 466 int /* parent_routing_id */,
467 int /* opener_routing_id */,
462 int /* render_view_routing_id */, 468 int /* render_view_routing_id */,
463 content::FrameReplicationState /* replication_state */) 469 content::FrameReplicationState /* replication_state */)
464 470
465 // Tells the renderer to perform the specified navigation, interrupting any 471 // Tells the renderer to perform the specified navigation, interrupting any
466 // existing navigation. 472 // existing navigation.
467 IPC_MESSAGE_ROUTED3(FrameMsg_Navigate, 473 IPC_MESSAGE_ROUTED3(FrameMsg_Navigate,
468 content::CommonNavigationParams, /* common_params */ 474 content::CommonNavigationParams, /* common_params */
469 content::StartNavigationParams, /* start_params */ 475 content::StartNavigationParams, /* start_params */
470 content::RequestNavigationParams /* request_params */) 476 content::RequestNavigationParams /* request_params */)
471 477
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 FrameMsg_PostMessage_Params) 1029 FrameMsg_PostMessage_Params)
1024 1030
1025 #if defined(OS_MACOSX) || defined(OS_ANDROID) 1031 #if defined(OS_MACOSX) || defined(OS_ANDROID)
1026 1032
1027 // Message to show/hide a popup menu using native controls. 1033 // Message to show/hide a popup menu using native controls.
1028 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 1034 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
1029 FrameHostMsg_ShowPopup_Params) 1035 FrameHostMsg_ShowPopup_Params)
1030 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 1036 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
1031 1037
1032 #endif 1038 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698