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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 IPC_STRUCT_MEMBER(int, closing_route_id) | 555 IPC_STRUCT_MEMBER(int, closing_route_id) |
556 | 556 |
557 // The identifier of the RenderProcessHost for the new view attempting to | 557 // The identifier of the RenderProcessHost for the new view attempting to |
558 // replace the closing one above. | 558 // replace the closing one above. |
559 IPC_STRUCT_MEMBER(int, new_render_process_host_id) | 559 IPC_STRUCT_MEMBER(int, new_render_process_host_id) |
560 | 560 |
561 // The identifier of the *request* the new view made that is causing the | 561 // The identifier of the *request* the new view made that is causing the |
562 // cross-site transition. This is *not* a route_id, but the request that we | 562 // cross-site transition. This is *not* a route_id, but the request that we |
563 // will resume once the ACK from the closing view has been received. | 563 // will resume once the ACK from the closing view has been received. |
564 IPC_STRUCT_MEMBER(int, new_request_id) | 564 IPC_STRUCT_MEMBER(int, new_request_id) |
| 565 |
| 566 // The identifier of the browsing instance frame we need to install a DOM |
| 567 // proxy for. |
| 568 IPC_STRUCT_MEMBER(int64, browsing_instance_frame_id) |
565 IPC_STRUCT_END() | 569 IPC_STRUCT_END() |
566 | 570 |
567 IPC_STRUCT_BEGIN(ViewMsg_Navigate_Params) | 571 IPC_STRUCT_BEGIN(ViewMsg_Navigate_Params) |
568 // The page_id for this navigation, or -1 if it is a new navigation. Back, | 572 // The page_id for this navigation, or -1 if it is a new navigation. Back, |
569 // Forward, and Reload navigations should have a valid page_id. If the load | 573 // Forward, and Reload navigations should have a valid page_id. If the load |
570 // succeeds, then this page_id will be reflected in the resultant | 574 // succeeds, then this page_id will be reflected in the resultant |
571 // ViewHostMsg_FrameNavigate message. | 575 // ViewHostMsg_FrameNavigate message. |
572 IPC_STRUCT_MEMBER(int32, page_id) | 576 IPC_STRUCT_MEMBER(int32, page_id) |
573 | 577 |
574 // If page_id is -1, then pending_history_list_offset will also be -1. | 578 // If page_id is -1, then pending_history_list_offset will also be -1. |
(...skipping 21 matching lines...) Expand all Loading... |
596 | 600 |
597 // Type of navigation. | 601 // Type of navigation. |
598 IPC_STRUCT_MEMBER(ViewMsg_Navigate_Type::Value, navigation_type) | 602 IPC_STRUCT_MEMBER(ViewMsg_Navigate_Type::Value, navigation_type) |
599 | 603 |
600 // The time the request was created | 604 // The time the request was created |
601 IPC_STRUCT_MEMBER(base::Time, request_time) | 605 IPC_STRUCT_MEMBER(base::Time, request_time) |
602 | 606 |
603 // Extra headers (separated by \n) to send during the request. | 607 // Extra headers (separated by \n) to send during the request. |
604 IPC_STRUCT_MEMBER(std::string, extra_headers) | 608 IPC_STRUCT_MEMBER(std::string, extra_headers) |
605 | 609 |
| 610 // The browsing instance frame id of the opener, or -1 if none |
| 611 IPC_STRUCT_MEMBER(int64, opener_browsing_instance_frame_id) |
| 612 |
606 // The following two members identify a previous request that has been | 613 // The following two members identify a previous request that has been |
607 // created before this navigation is being transferred to a new render view. | 614 // created before this navigation is being transferred to a new render view. |
608 // This serves the purpose of recycling the old request. | 615 // This serves the purpose of recycling the old request. |
609 // Unless this refers to a transferred navigation, these values are -1 and -1. | 616 // Unless this refers to a transferred navigation, these values are -1 and -1. |
610 IPC_STRUCT_MEMBER(int, transferred_request_child_id) | 617 IPC_STRUCT_MEMBER(int, transferred_request_child_id) |
611 IPC_STRUCT_MEMBER(int, transferred_request_request_id) | 618 IPC_STRUCT_MEMBER(int, transferred_request_request_id) |
612 IPC_STRUCT_END() | 619 IPC_STRUCT_END() |
613 | 620 |
614 IPC_STRUCT_BEGIN(ViewMsg_New_Params) | 621 IPC_STRUCT_BEGIN(ViewMsg_New_Params) |
615 // The parent window's id. | 622 // The parent window's id. |
616 IPC_STRUCT_MEMBER(gfx::NativeViewId, parent_window) | 623 IPC_STRUCT_MEMBER(gfx::NativeViewId, parent_window) |
617 | 624 |
618 // Renderer-wide preferences. | 625 // Renderer-wide preferences. |
619 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) | 626 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) |
620 | 627 |
621 // Preferences for this view. | 628 // Preferences for this view. |
622 IPC_STRUCT_MEMBER(WebPreferences, web_preferences) | 629 IPC_STRUCT_MEMBER(WebPreferences, web_preferences) |
623 | 630 |
624 // The ID of the view to be created. | 631 // The ID of the view to be created. |
625 IPC_STRUCT_MEMBER(int32, view_id) | 632 IPC_STRUCT_MEMBER(int32, view_id) |
626 | 633 |
627 // The session storage namespace ID this view should use. | 634 // The session storage namespace ID this view should use. |
628 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id) | 635 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id) |
629 | 636 |
630 // The name of the frame associated with this view (or empty if none). | 637 // The name of the frame associated with this view (or empty if none). |
631 IPC_STRUCT_MEMBER(string16, frame_name) | 638 IPC_STRUCT_MEMBER(string16, frame_name) |
632 IPC_STRUCT_END() | 639 IPC_STRUCT_END() |
633 | 640 |
| 641 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) |
| 642 // The serialized script value |
| 643 IPC_STRUCT_MEMBER(string16, data) |
| 644 |
| 645 // The source origin |
| 646 IPC_STRUCT_MEMBER(string16, sourceOrigin) |
| 647 |
| 648 // The target origin |
| 649 IPC_STRUCT_MEMBER(string16, targetOrigin) |
| 650 IPC_STRUCT_END() |
| 651 |
| 652 IPC_STRUCT_BEGIN(ViewMsg_SetOpenerProxy_Params) |
| 653 IPC_STRUCT_MEMBER(int, render_process_host_id) |
| 654 IPC_STRUCT_MEMBER(int, render_route_id) |
| 655 // TODO(supersat): Frame identifier? |
| 656 IPC_STRUCT_END() |
| 657 |
| 658 IPC_STRUCT_BEGIN(ViewHostMsg_OpenURL_Params) |
| 659 IPC_STRUCT_MEMBER(GURL, url) |
| 660 IPC_STRUCT_MEMBER(content::Referrer, referrer) |
| 661 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) |
| 662 IPC_STRUCT_MEMBER(int64, source_frame_id) |
| 663 IPC_STRUCT_MEMBER(int64, opener_frame_id) |
| 664 IPC_STRUCT_END() |
| 665 |
634 // Messages sent from the browser to the renderer. | 666 // Messages sent from the browser to the renderer. |
635 | 667 |
636 // Used typically when recovering from a crash. The new rendering process | 668 // Used typically when recovering from a crash. The new rendering process |
637 // sets its global "next page id" counter to the given value. | 669 // sets its global "next page id" counter to the given value. |
638 IPC_MESSAGE_CONTROL1(ViewMsg_SetNextPageID, | 670 IPC_MESSAGE_CONTROL1(ViewMsg_SetNextPageID, |
639 int32 /* next_page_id */) | 671 int32 /* next_page_id */) |
640 | 672 |
641 // Sent to the RenderView when a new tab is swapped into an existing | 673 // Sent to the RenderView when a new tab is swapped into an existing |
642 // tab and the histories need to be merged. The existing tab has a history of | 674 // tab and the histories need to be merged. The existing tab has a history of |
643 // |merged_history_length| which precedes the history of the new tab. All | 675 // |merged_history_length| which precedes the history of the new tab. All |
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1587 | 1619 |
1588 IPC_SYNC_MESSAGE_ROUTED4_2(ViewHostMsg_RunJavaScriptMessage, | 1620 IPC_SYNC_MESSAGE_ROUTED4_2(ViewHostMsg_RunJavaScriptMessage, |
1589 string16 /* in - alert message */, | 1621 string16 /* in - alert message */, |
1590 string16 /* in - default prompt */, | 1622 string16 /* in - default prompt */, |
1591 GURL /* in - originating page URL */, | 1623 GURL /* in - originating page URL */, |
1592 ui::JavascriptMessageType /* in - type */, | 1624 ui::JavascriptMessageType /* in - type */, |
1593 bool /* out - success */, | 1625 bool /* out - success */, |
1594 string16 /* out - user_input field */) | 1626 string16 /* out - user_input field */) |
1595 | 1627 |
1596 // Requests that the given URL be opened in the specified manner. | 1628 // Requests that the given URL be opened in the specified manner. |
1597 IPC_MESSAGE_ROUTED4(ViewHostMsg_OpenURL, | 1629 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenURL, |
1598 GURL /* url */, | 1630 ViewHostMsg_OpenURL_Params) |
1599 content::Referrer /* referrer */, | |
1600 WindowOpenDisposition /* disposition */, | |
1601 int64 /* frame id */) | |
1602 | 1631 |
1603 // Notifies that the preferred size of the content changed. | 1632 // Notifies that the preferred size of the content changed. |
1604 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange, | 1633 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange, |
1605 gfx::Size /* pref_size */) | 1634 gfx::Size /* pref_size */) |
1606 | 1635 |
1607 // Notifies that the scrollbars-visible state of the content changed. | 1636 // Notifies that the scrollbars-visible state of the content changed. |
1608 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidChangeScrollOffsetPinningForMainFrame, | 1637 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidChangeScrollOffsetPinningForMainFrame, |
1609 bool /* has_horizontal_scrollbar */, | 1638 bool /* has_horizontal_scrollbar */, |
1610 bool /* has_vertical_scrollbar */) | 1639 bool /* has_vertical_scrollbar */) |
1611 | 1640 |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1957 media::MediaLogEvent /* event */) | 1986 media::MediaLogEvent /* event */) |
1958 | 1987 |
1959 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 1988 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
1960 // being sent back. | 1989 // being sent back. |
1961 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) | 1990 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) |
1962 | 1991 |
1963 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent | 1992 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent |
1964 // whenever the mouse is unlocked (which may or may not be caused by | 1993 // whenever the mouse is unlocked (which may or may not be caused by |
1965 // ViewHostMsg_UnlockMouse). | 1994 // ViewHostMsg_UnlockMouse). |
1966 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 1995 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
| 1996 |
| 1997 IPC_MESSAGE_CONTROL2(ViewHostMsg_SendPostMessage, |
| 1998 int64 /* browsing_process_frame_id */, |
| 1999 ViewMsg_PostMessage_Params) |
| 2000 |
| 2001 IPC_MESSAGE_ROUTED2(ViewMsg_PostMessage, |
| 2002 int64 /* frame_id */, |
| 2003 ViewMsg_PostMessage_Params) |
| 2004 |
| 2005 IPC_MESSAGE_ROUTED1(ViewMsg_SetOpenerProxy, |
| 2006 ViewMsg_SetOpenerProxy_Params) |
OLD | NEW |