| OLD | NEW |
| 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 "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
| 9 #include "content/common/content_param_traits.h" | 9 #include "content/common/content_param_traits.h" |
| 10 #include "content/common/frame_message_enums.h" | 10 #include "content/common/frame_message_enums.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 IPC_STRUCT_TRAITS_MEMBER(request_id) | 94 IPC_STRUCT_TRAITS_MEMBER(request_id) |
| 95 IPC_STRUCT_TRAITS_MEMBER(render_widget_id) | 95 IPC_STRUCT_TRAITS_MEMBER(render_widget_id) |
| 96 IPC_STRUCT_TRAITS_MEMBER(link_followed) | 96 IPC_STRUCT_TRAITS_MEMBER(link_followed) |
| 97 IPC_STRUCT_TRAITS_END() | 97 IPC_STRUCT_TRAITS_END() |
| 98 | 98 |
| 99 IPC_STRUCT_TRAITS_BEGIN(content::TransitionElement) | 99 IPC_STRUCT_TRAITS_BEGIN(content::TransitionElement) |
| 100 IPC_STRUCT_TRAITS_MEMBER(id) | 100 IPC_STRUCT_TRAITS_MEMBER(id) |
| 101 IPC_STRUCT_TRAITS_MEMBER(rect) | 101 IPC_STRUCT_TRAITS_MEMBER(rect) |
| 102 IPC_STRUCT_TRAITS_END() | 102 IPC_STRUCT_TRAITS_END() |
| 103 | 103 |
| 104 IPC_STRUCT_BEGIN(FrameHostMsg_AddNavigationTransitionData_Params) | |
| 105 IPC_STRUCT_MEMBER(int, render_frame_id) | |
| 106 IPC_STRUCT_MEMBER(std::string, allowed_destination_host_pattern) | |
| 107 IPC_STRUCT_MEMBER(std::string, selector) | |
| 108 IPC_STRUCT_MEMBER(std::string, markup) | |
| 109 IPC_STRUCT_MEMBER(std::vector<content::TransitionElement>, elements) | |
| 110 IPC_STRUCT_END() | |
| 111 | 104 |
| 112 IPC_STRUCT_BEGIN(FrameHostMsg_DidFailProvisionalLoadWithError_Params) | 105 IPC_STRUCT_BEGIN(FrameHostMsg_DidFailProvisionalLoadWithError_Params) |
| 113 // Error code as reported in the DidFailProvisionalLoad callback. | 106 // Error code as reported in the DidFailProvisionalLoad callback. |
| 114 IPC_STRUCT_MEMBER(int, error_code) | 107 IPC_STRUCT_MEMBER(int, error_code) |
| 115 // An error message generated from the error_code. This can be an empty | 108 // An error message generated from the error_code. This can be an empty |
| 116 // string if we were unable to find a meaningful description. | 109 // string if we were unable to find a meaningful description. |
| 117 IPC_STRUCT_MEMBER(base::string16, error_description) | 110 IPC_STRUCT_MEMBER(base::string16, error_description) |
| 118 // The URL that the error is reported for. | 111 // The URL that the error is reported for. |
| 119 IPC_STRUCT_MEMBER(GURL, url) | 112 IPC_STRUCT_MEMBER(GURL, url) |
| 120 // True if the failure is the result of navigating to a POST again | 113 // True if the failure is the result of navigating to a POST again |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 // Indicates the renderer process is gone. This actually is sent by the | 646 // Indicates the renderer process is gone. This actually is sent by the |
| 654 // browser process to itself, but keeps the interface cleaner. | 647 // browser process to itself, but keeps the interface cleaner. |
| 655 IPC_MESSAGE_ROUTED2(FrameHostMsg_RenderProcessGone, | 648 IPC_MESSAGE_ROUTED2(FrameHostMsg_RenderProcessGone, |
| 656 int, /* this really is base::TerminationStatus */ | 649 int, /* this really is base::TerminationStatus */ |
| 657 int /* exit_code */) | 650 int /* exit_code */) |
| 658 | 651 |
| 659 // Sent by the renderer when the frame becomes focused. | 652 // Sent by the renderer when the frame becomes focused. |
| 660 IPC_MESSAGE_ROUTED0(FrameHostMsg_FrameFocused) | 653 IPC_MESSAGE_ROUTED0(FrameHostMsg_FrameFocused) |
| 661 | 654 |
| 662 // Sent when the renderer starts a provisional load for a frame. | 655 // Sent when the renderer starts a provisional load for a frame. |
| 663 // |is_transition_navigation| signals that the frame has defined transition | 656 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidStartProvisionalLoadForFrame, |
| 664 // elements which can be animated by the navigation destination to provide | 657 GURL /* url */) |
| 665 // a transition effect during load. | |
| 666 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidStartProvisionalLoadForFrame, | |
| 667 GURL /* url */, | |
| 668 bool /* is_transition_navigation */) | |
| 669 | 658 |
| 670 // Sent when the renderer fails a provisional load with an error. | 659 // Sent when the renderer fails a provisional load with an error. |
| 671 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFailProvisionalLoadWithError, | 660 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFailProvisionalLoadWithError, |
| 672 FrameHostMsg_DidFailProvisionalLoadWithError_Params) | 661 FrameHostMsg_DidFailProvisionalLoadWithError_Params) |
| 673 | 662 |
| 674 // Notifies the browser that a frame in the view has changed. This message | 663 // Notifies the browser that a frame in the view has changed. This message |
| 675 // has a lot of parameters and is packed/unpacked by functions defined in | 664 // has a lot of parameters and is packed/unpacked by functions defined in |
| 676 // render_messages.h. | 665 // render_messages.h. |
| 677 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidCommitProvisionalLoad, | 666 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidCommitProvisionalLoad, |
| 678 FrameHostMsg_DidCommitProvisionalLoad_Params) | 667 FrameHostMsg_DidCommitProvisionalLoad_Params) |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeThemeColor, | 917 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeThemeColor, |
| 929 SkColor /* theme_color */) | 918 SkColor /* theme_color */) |
| 930 | 919 |
| 931 // Response for FrameMsg_TextSurroundingSelectionRequest, |startOffset| and | 920 // Response for FrameMsg_TextSurroundingSelectionRequest, |startOffset| and |
| 932 // |endOffset| are the offsets of the selection in the returned |content|. | 921 // |endOffset| are the offsets of the selection in the returned |content|. |
| 933 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, | 922 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, |
| 934 base::string16, /* content */ | 923 base::string16, /* content */ |
| 935 size_t, /* startOffset */ | 924 size_t, /* startOffset */ |
| 936 size_t /* endOffset */) | 925 size_t /* endOffset */) |
| 937 | 926 |
| 938 // Notifies the browser that the renderer has a pending navigation transition. | |
| 939 // The string parameters are all UTF8. | |
| 940 IPC_MESSAGE_CONTROL1(FrameHostMsg_AddNavigationTransitionData, | |
| 941 FrameHostMsg_AddNavigationTransitionData_Params) | |
| 942 | |
| 943 // PlzNavigate | 927 // PlzNavigate |
| 944 // Tells the browser to perform a navigation. | 928 // Tells the browser to perform a navigation. |
| 945 IPC_MESSAGE_ROUTED3(FrameHostMsg_BeginNavigation, | 929 IPC_MESSAGE_ROUTED3(FrameHostMsg_BeginNavigation, |
| 946 content::CommonNavigationParams, | 930 content::CommonNavigationParams, |
| 947 content::BeginNavigationParams, | 931 content::BeginNavigationParams, |
| 948 scoped_refptr<content::ResourceRequestBody>) | 932 scoped_refptr<content::ResourceRequestBody>) |
| 949 | 933 |
| 950 // Sent once a paint happens after the first non empty layout. In other words | 934 // Sent once a paint happens after the first non empty layout. In other words |
| 951 // after the frame has painted something. | 935 // after the frame has painted something. |
| 952 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) | 936 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) |
| (...skipping 16 matching lines...) Expand all Loading... |
| 969 FrameMsg_PostMessage_Params) | 953 FrameMsg_PostMessage_Params) |
| 970 | 954 |
| 971 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 955 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 972 | 956 |
| 973 // Message to show/hide a popup menu using native controls. | 957 // Message to show/hide a popup menu using native controls. |
| 974 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 958 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
| 975 FrameHostMsg_ShowPopup_Params) | 959 FrameHostMsg_ShowPopup_Params) |
| 976 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 960 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
| 977 | 961 |
| 978 #endif | 962 #endif |
| OLD | NEW |