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

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

Issue 2383853003: Move FrameMsg_NewFrame/NewFrameProxy to mojom (Closed)
Patch Set: Move FrameMsg_NewFrame/NewFrameProxy to mojom Created 4 years, 2 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/site_per_process_browsertest.cc ('k') | content/common/native_types.mojom » ('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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 IPC_STRUCT_TRAITS_MEMBER(origin) 394 IPC_STRUCT_TRAITS_MEMBER(origin)
395 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) 395 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags)
396 IPC_STRUCT_TRAITS_MEMBER(name) 396 IPC_STRUCT_TRAITS_MEMBER(name)
397 IPC_STRUCT_TRAITS_MEMBER(unique_name) 397 IPC_STRUCT_TRAITS_MEMBER(unique_name)
398 IPC_STRUCT_TRAITS_MEMBER(accumulated_csp_headers) 398 IPC_STRUCT_TRAITS_MEMBER(accumulated_csp_headers)
399 IPC_STRUCT_TRAITS_MEMBER(scope) 399 IPC_STRUCT_TRAITS_MEMBER(scope)
400 IPC_STRUCT_TRAITS_MEMBER(insecure_request_policy) 400 IPC_STRUCT_TRAITS_MEMBER(insecure_request_policy)
401 IPC_STRUCT_TRAITS_MEMBER(has_potentially_trustworthy_unique_origin) 401 IPC_STRUCT_TRAITS_MEMBER(has_potentially_trustworthy_unique_origin)
402 IPC_STRUCT_TRAITS_END() 402 IPC_STRUCT_TRAITS_END()
403 403
404 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_WidgetParams)
405 // Gives the routing ID for the RenderWidget that will be attached to the
406 // new RenderFrame. If the RenderFrame does not need a RenderWidget, this
407 // is MSG_ROUTING_NONE and the other parameters are not read.
408 IPC_STRUCT_MEMBER(int, routing_id)
409
410 // Tells the new RenderWidget whether it is initially hidden.
411 IPC_STRUCT_MEMBER(bool, hidden)
412 IPC_STRUCT_END()
413
414 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_Params)
415 // Specifies the routing ID of the new RenderFrame object.
416 IPC_STRUCT_MEMBER(int, routing_id)
417
418 // If a valid |proxy_routing_id| is provided, the new frame will be
419 // configured to replace the proxy on commit.
420 IPC_STRUCT_MEMBER(int, proxy_routing_id)
421
422 // Specifies the new frame's opener. The opener will be null if this is
423 // MSG_ROUTING_NONE.
424 IPC_STRUCT_MEMBER(int, opener_routing_id)
425
426 // The new frame should be created as a child of the object
427 // identified by |parent_routing_id| or as top level if that is
428 // MSG_ROUTING_NONE.
429 IPC_STRUCT_MEMBER(int, parent_routing_id)
430
431 // Identifies the previous sibling of the new frame, so that the new frame is
432 // inserted into the correct place in the frame tree. If this is
433 // MSG_ROUTING_NONE, the frame will be created as the leftmost child of its
434 // parent frame, in front of any other children.
435 IPC_STRUCT_MEMBER(int, previous_sibling_routing_id)
436
437 // When the new frame has a parent, |replication_state| holds the new frame's
438 // properties replicated from the process rendering the parent frame, such as
439 // the new frame's sandbox flags.
440 IPC_STRUCT_MEMBER(content::FrameReplicationState, replication_state)
441
442 // When the new frame has a parent, |frame_owner_properties| holds the
443 // properties of the HTMLFrameOwnerElement from the parent process.
444 // Note that unlike FrameReplicationState, this is not replicated for remote
445 // frames.
446 IPC_STRUCT_MEMBER(content::FrameOwnerProperties, frame_owner_properties)
447
448 // Specifies properties for a new RenderWidget that will be attached to the
449 // new RenderFrame (if one is needed).
450 IPC_STRUCT_MEMBER(FrameMsg_NewFrame_WidgetParams, widget_params)
451 IPC_STRUCT_END()
452
453 // Parameters included with an OpenURL request. 404 // Parameters included with an OpenURL request.
454 // |is_history_navigation_in_new_child| is true in the case that the browser 405 // |is_history_navigation_in_new_child| is true in the case that the browser
455 // process should look for an existing history item for the frame. 406 // process should look for an existing history item for the frame.
456 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) 407 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params)
457 IPC_STRUCT_MEMBER(GURL, url) 408 IPC_STRUCT_MEMBER(GURL, url)
458 IPC_STRUCT_MEMBER(bool, uses_post) 409 IPC_STRUCT_MEMBER(bool, uses_post)
459 IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBodyImpl>, 410 IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBodyImpl>,
460 resource_request_body) 411 resource_request_body)
461 IPC_STRUCT_MEMBER(content::Referrer, referrer) 412 IPC_STRUCT_MEMBER(content::Referrer, referrer)
462 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) 413 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition)
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 600
650 // Requests that the RenderFrame or RenderFrameProxy updates its opener to the 601 // Requests that the RenderFrame or RenderFrameProxy updates its opener to the
651 // specified frame. The routing ID may be MSG_ROUTING_NONE if the opener was 602 // specified frame. The routing ID may be MSG_ROUTING_NONE if the opener was
652 // disowned. 603 // disowned.
653 IPC_MESSAGE_ROUTED1(FrameMsg_UpdateOpener, int /* opener_routing_id */) 604 IPC_MESSAGE_ROUTED1(FrameMsg_UpdateOpener, int /* opener_routing_id */)
654 605
655 // Requests that the RenderFrame send back a response after waiting for the 606 // Requests that the RenderFrame send back a response after waiting for the
656 // commit, activation and frame swap of the current DOM tree in blink. 607 // commit, activation and frame swap of the current DOM tree in blink.
657 IPC_MESSAGE_ROUTED1(FrameMsg_VisualStateRequest, uint64_t /* id */) 608 IPC_MESSAGE_ROUTED1(FrameMsg_VisualStateRequest, uint64_t /* id */)
658 609
659 // Instructs the renderer to create a new RenderFrame object.
660 IPC_MESSAGE_CONTROL1(FrameMsg_NewFrame, FrameMsg_NewFrame_Params /* params */)
661
662 // Instructs the renderer to delete the RenderFrame. 610 // Instructs the renderer to delete the RenderFrame.
663 IPC_MESSAGE_ROUTED0(FrameMsg_Delete) 611 IPC_MESSAGE_ROUTED0(FrameMsg_Delete)
664 612
665 // Instructs the renderer to create a new RenderFrameProxy object with
666 // |routing_id|. |render_view_routing_id| identifies the
667 // RenderView to be associated with this proxy. The new proxy's opener should
668 // be set to the object identified by |opener_routing_id|, or to null if that
669 // is MSG_ROUTING_NONE. The new proxy should be created as a child of the
670 // object identified by |parent_routing_id| or as top level if that is
671 // MSG_ROUTING_NONE.
672 IPC_MESSAGE_CONTROL5(FrameMsg_NewFrameProxy,
673 int /* routing_id */,
674 int /* render_view_routing_id */,
675 int /* opener_routing_id */,
676 int /* parent_routing_id */,
677 content::FrameReplicationState /* replication_state */)
678
679 // Tells the renderer to perform the specified navigation, interrupting any 613 // Tells the renderer to perform the specified navigation, interrupting any
680 // existing navigation. 614 // existing navigation.
681 IPC_MESSAGE_ROUTED3(FrameMsg_Navigate, 615 IPC_MESSAGE_ROUTED3(FrameMsg_Navigate,
682 content::CommonNavigationParams, /* common_params */ 616 content::CommonNavigationParams, /* common_params */
683 content::StartNavigationParams, /* start_params */ 617 content::StartNavigationParams, /* start_params */
684 content::RequestNavigationParams /* request_params */) 618 content::RequestNavigationParams /* request_params */)
685 619
686 // Instructs the renderer to invoke the frame's beforeunload event handler. 620 // Instructs the renderer to invoke the frame's beforeunload event handler.
687 // Expects the result to be returned via FrameHostMsg_BeforeUnload_ACK. 621 // Expects the result to be returned via FrameHostMsg_BeforeUnload_ACK.
688 IPC_MESSAGE_ROUTED1(FrameMsg_BeforeUnload, bool /* is_reload */) 622 IPC_MESSAGE_ROUTED1(FrameMsg_BeforeUnload, bool /* is_reload */)
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after
1565 // nearest find result in the sending frame. 1499 // nearest find result in the sending frame.
1566 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, 1500 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply,
1567 int /* nfr_request_id */, 1501 int /* nfr_request_id */,
1568 float /* distance */) 1502 float /* distance */)
1569 #endif 1503 #endif
1570 1504
1571 // Adding a new message? Stick to the sort order above: first platform 1505 // Adding a new message? Stick to the sort order above: first platform
1572 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1506 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1573 // platform independent FrameHostMsg, then ifdefs for platform specific 1507 // platform independent FrameHostMsg, then ifdefs for platform specific
1574 // FrameHostMsg. 1508 // FrameHostMsg.
OLDNEW
« no previous file with comments | « content/browser/site_per_process_browsertest.cc ('k') | content/common/native_types.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698