OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 page rendering. | 5 // IPC messages for page rendering. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "base/process.h" | 8 #include "base/process.h" |
9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 IPC_STRUCT_MEMBER(int, closing_route_id) | 562 IPC_STRUCT_MEMBER(int, closing_route_id) |
563 | 563 |
564 // The identifier of the RenderProcessHost for the new view attempting to | 564 // The identifier of the RenderProcessHost for the new view attempting to |
565 // replace the closing one above. | 565 // replace the closing one above. |
566 IPC_STRUCT_MEMBER(int, new_render_process_host_id) | 566 IPC_STRUCT_MEMBER(int, new_render_process_host_id) |
567 | 567 |
568 // The identifier of the *request* the new view made that is causing the | 568 // The identifier of the *request* the new view made that is causing the |
569 // cross-site transition. This is *not* a route_id, but the request that we | 569 // cross-site transition. This is *not* a route_id, but the request that we |
570 // will resume once the ACK from the closing view has been received. | 570 // will resume once the ACK from the closing view has been received. |
571 IPC_STRUCT_MEMBER(int, new_request_id) | 571 IPC_STRUCT_MEMBER(int, new_request_id) |
| 572 |
| 573 // The identifier of the ContentFrame we are becoming a proxy for. |
| 574 IPC_STRUCT_MEMBER(int64, content_frame_id) |
572 IPC_STRUCT_END() | 575 IPC_STRUCT_END() |
573 | 576 |
574 IPC_STRUCT_BEGIN(ViewMsg_Navigate_Params) | 577 IPC_STRUCT_BEGIN(ViewMsg_Navigate_Params) |
575 // The page_id for this navigation, or -1 if it is a new navigation. Back, | 578 // The page_id for this navigation, or -1 if it is a new navigation. Back, |
576 // Forward, and Reload navigations should have a valid page_id. If the load | 579 // Forward, and Reload navigations should have a valid page_id. If the load |
577 // succeeds, then this page_id will be reflected in the resultant | 580 // succeeds, then this page_id will be reflected in the resultant |
578 // ViewHostMsg_FrameNavigate message. | 581 // ViewHostMsg_FrameNavigate message. |
579 IPC_STRUCT_MEMBER(int32, page_id) | 582 IPC_STRUCT_MEMBER(int32, page_id) |
580 | 583 |
581 // If page_id is -1, then pending_history_list_offset will also be -1. | 584 // If page_id is -1, then pending_history_list_offset will also be -1. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 | 633 |
631 // The ID of the view to be created. | 634 // The ID of the view to be created. |
632 IPC_STRUCT_MEMBER(int32, view_id) | 635 IPC_STRUCT_MEMBER(int32, view_id) |
633 | 636 |
634 // The session storage namespace ID this view should use. | 637 // The session storage namespace ID this view should use. |
635 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id) | 638 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id) |
636 | 639 |
637 // The name of the frame associated with this view (or empty if none). | 640 // The name of the frame associated with this view (or empty if none). |
638 IPC_STRUCT_MEMBER(string16, frame_name) | 641 IPC_STRUCT_MEMBER(string16, frame_name) |
639 | 642 |
| 643 // The route ID of the opener RenderView if we need to set one |
| 644 // (MSG_ROUTING_NONE otherwise) |
| 645 IPC_STRUCT_MEMBER(int, opener_route_id) |
| 646 |
640 // The initial page ID to use for this view, which must be larger than any | 647 // The initial page ID to use for this view, which must be larger than any |
641 // existing navigation that might be loaded in the view. Page IDs are unique | 648 // existing navigation that might be loaded in the view. Page IDs are unique |
642 // to a view and are only updated by the renderer after this initial value. | 649 // to a view and are only updated by the renderer after this initial value. |
643 IPC_STRUCT_MEMBER(int32, next_page_id) | 650 IPC_STRUCT_MEMBER(int32, next_page_id) |
644 IPC_STRUCT_END() | 651 IPC_STRUCT_END() |
645 | 652 |
| 653 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) |
| 654 // The serialized script value |
| 655 IPC_STRUCT_MEMBER(string16, data) |
| 656 |
| 657 // The source origin |
| 658 IPC_STRUCT_MEMBER(string16, source_origin) |
| 659 |
| 660 // The target origin |
| 661 IPC_STRUCT_MEMBER(string16, target_origin) |
| 662 IPC_STRUCT_END() |
| 663 |
646 // Messages sent from the browser to the renderer. | 664 // Messages sent from the browser to the renderer. |
647 | 665 |
648 // Sent to the RenderView when a new tab is swapped into an existing | 666 // Sent to the RenderView when a new tab is swapped into an existing |
649 // tab and the histories need to be merged. The existing tab has a history of | 667 // tab and the histories need to be merged. The existing tab has a history of |
650 // |merged_history_length| which precedes the history of the new tab. All | 668 // |merged_history_length| which precedes the history of the new tab. All |
651 // page_ids >= |minimum_page_id| in the new tab are appended to the history. | 669 // page_ids >= |minimum_page_id| in the new tab are appended to the history. |
652 // | 670 // |
653 // For example, suppose the history of page_ids in the new tab's RenderView | 671 // For example, suppose the history of page_ids in the new tab's RenderView |
654 // is [4 7 8]. This is merged into an existing tab with 3 history items, and | 672 // is [4 7 8]. This is merged into an existing tab with 3 history items, and |
655 // all pages in the new tab with page_id >= 7 are to be preserved. | 673 // all pages in the new tab with page_id >= 7 are to be preserved. |
(...skipping 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1961 media::MediaLogEvent /* event */) | 1979 media::MediaLogEvent /* event */) |
1962 | 1980 |
1963 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 1981 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
1964 // being sent back. | 1982 // being sent back. |
1965 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) | 1983 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) |
1966 | 1984 |
1967 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent | 1985 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent |
1968 // whenever the mouse is unlocked (which may or may not be caused by | 1986 // whenever the mouse is unlocked (which may or may not be caused by |
1969 // ViewHostMsg_UnlockMouse). | 1987 // ViewHostMsg_UnlockMouse). |
1970 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 1988 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
| 1989 |
| 1990 IPC_MESSAGE_CONTROL2(ViewHostMsg_SendPostMessage, |
| 1991 int64 /* browsing_process_frame_id */, |
| 1992 ViewMsg_PostMessage_Params) |
| 1993 |
| 1994 IPC_MESSAGE_ROUTED2(ViewMsg_PostMessage, |
| 1995 int64 /* frame_id */, |
| 1996 ViewMsg_PostMessage_Params) |
OLD | NEW |