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 need are becoming a proxy for. | |
awong
2011/12/21 01:56:07
s/need//
supersat
2011/12/23 03:22:46
Done.
| |
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 (-1 otherwise) | |
awong
2011/12/21 01:56:07
use a constant?
supersat
2011/12/23 03:22:46
Done.
| |
644 IPC_STRUCT_MEMBER(int32, opener_route_id) | |
jam
2011/12/22 20:06:53
nit: we usually send routing ids as just ints
supersat
2011/12/23 03:22:46
Done.
| |
645 | |
640 // The initial page ID to use for this view, which must be larger than any | 646 // 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 | 647 // 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. | 648 // to a view and are only updated by the renderer after this initial value. |
643 IPC_STRUCT_MEMBER(int32, next_page_id) | 649 IPC_STRUCT_MEMBER(int32, next_page_id) |
644 IPC_STRUCT_END() | 650 IPC_STRUCT_END() |
645 | 651 |
652 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) | |
653 // The serialized script value | |
654 IPC_STRUCT_MEMBER(string16, data) | |
655 | |
656 // The source origin | |
657 IPC_STRUCT_MEMBER(string16, sourceOrigin) | |
awong
2011/12/21 01:56:07
lowercase_and_underscores.
supersat
2011/12/23 03:22:46
Done.
| |
658 | |
659 // The target origin | |
660 IPC_STRUCT_MEMBER(string16, targetOrigin) | |
661 IPC_STRUCT_END() | |
662 | |
646 // Messages sent from the browser to the renderer. | 663 // Messages sent from the browser to the renderer. |
647 | 664 |
648 // Sent to the RenderView when a new tab is swapped into an existing | 665 // 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 | 666 // 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 | 667 // |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. | 668 // page_ids >= |minimum_page_id| in the new tab are appended to the history. |
652 // | 669 // |
653 // For example, suppose the history of page_ids in the new tab's RenderView | 670 // 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 | 671 // 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. | 672 // 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 */) | 1978 media::MediaLogEvent /* event */) |
1962 | 1979 |
1963 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 1980 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
1964 // being sent back. | 1981 // being sent back. |
1965 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) | 1982 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) |
1966 | 1983 |
1967 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent | 1984 // 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 | 1985 // whenever the mouse is unlocked (which may or may not be caused by |
1969 // ViewHostMsg_UnlockMouse). | 1986 // ViewHostMsg_UnlockMouse). |
1970 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 1987 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
1988 | |
1989 IPC_MESSAGE_CONTROL2(ViewHostMsg_SendPostMessage, | |
1990 int64 /* browsing_process_frame_id */, | |
1991 ViewMsg_PostMessage_Params) | |
1992 | |
1993 IPC_MESSAGE_ROUTED2(ViewMsg_PostMessage, | |
1994 int64 /* frame_id */, | |
1995 ViewMsg_PostMessage_Params) | |
OLD | NEW |