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 "cc/surfaces/surface_id.h" | 8 #include "cc/surfaces/surface_id.h" |
9 #include "cc/surfaces/surface_sequence.h" | 9 #include "cc/surfaces/surface_sequence.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "content/common/content_param_traits.h" | 11 #include "content/common/content_param_traits.h" |
12 #include "content/common/frame_message_enums.h" | 12 #include "content/common/frame_message_enums.h" |
13 #include "content/common/frame_param.h" | 13 #include "content/common/frame_param.h" |
14 #include "content/common/frame_replication_state.h" | 14 #include "content/common/frame_replication_state.h" |
15 #include "content/common/navigation_gesture.h" | 15 #include "content/common/navigation_gesture.h" |
16 #include "content/common/navigation_params.h" | 16 #include "content/common/navigation_params.h" |
17 #include "content/common/resource_request_body.h" | 17 #include "content/common/resource_request_body.h" |
18 #include "content/public/common/color_suggestion.h" | 18 #include "content/public/common/color_suggestion.h" |
19 #include "content/public/common/common_param_traits.h" | 19 #include "content/public/common/common_param_traits.h" |
20 #include "content/public/common/console_message_level.h" | 20 #include "content/public/common/console_message_level.h" |
21 #include "content/public/common/context_menu_params.h" | 21 #include "content/public/common/context_menu_params.h" |
22 #include "content/public/common/frame_navigate_params.h" | 22 #include "content/public/common/frame_navigate_params.h" |
23 #include "content/public/common/javascript_message_type.h" | 23 #include "content/public/common/javascript_message_type.h" |
24 #include "content/public/common/message_port_types.h" | 24 #include "content/public/common/message_port_types.h" |
| 25 #include "content/public/common/page_importance_signals.h" |
25 #include "content/public/common/page_state.h" | 26 #include "content/public/common/page_state.h" |
26 #include "content/public/common/resource_response.h" | 27 #include "content/public/common/resource_response.h" |
27 #include "content/public/common/three_d_api_types.h" | 28 #include "content/public/common/three_d_api_types.h" |
28 #include "content/public/common/transition_element.h" | 29 #include "content/public/common/transition_element.h" |
29 #include "ipc/ipc_message_macros.h" | 30 #include "ipc/ipc_message_macros.h" |
30 #include "third_party/WebKit/public/web/WebTreeScopeType.h" | 31 #include "third_party/WebKit/public/web/WebTreeScopeType.h" |
31 #include "ui/gfx/ipc/gfx_param_traits.h" | 32 #include "ui/gfx/ipc/gfx_param_traits.h" |
32 #include "url/gurl.h" | 33 #include "url/gurl.h" |
33 #include "url/origin.h" | 34 #include "url/origin.h" |
34 | 35 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 IPC_STRUCT_TRAITS_MEMBER(request_id) | 111 IPC_STRUCT_TRAITS_MEMBER(request_id) |
111 IPC_STRUCT_TRAITS_MEMBER(render_widget_id) | 112 IPC_STRUCT_TRAITS_MEMBER(render_widget_id) |
112 IPC_STRUCT_TRAITS_MEMBER(link_followed) | 113 IPC_STRUCT_TRAITS_MEMBER(link_followed) |
113 IPC_STRUCT_TRAITS_END() | 114 IPC_STRUCT_TRAITS_END() |
114 | 115 |
115 IPC_STRUCT_TRAITS_BEGIN(content::TransitionElement) | 116 IPC_STRUCT_TRAITS_BEGIN(content::TransitionElement) |
116 IPC_STRUCT_TRAITS_MEMBER(id) | 117 IPC_STRUCT_TRAITS_MEMBER(id) |
117 IPC_STRUCT_TRAITS_MEMBER(rect) | 118 IPC_STRUCT_TRAITS_MEMBER(rect) |
118 IPC_STRUCT_TRAITS_END() | 119 IPC_STRUCT_TRAITS_END() |
119 | 120 |
| 121 IPC_STRUCT_TRAITS_BEGIN(content::PageImportanceSignals) |
| 122 IPC_STRUCT_TRAITS_MEMBER(had_form_interaction) |
| 123 IPC_STRUCT_TRAITS_END() |
120 | 124 |
121 IPC_STRUCT_BEGIN(FrameHostMsg_DidFailProvisionalLoadWithError_Params) | 125 IPC_STRUCT_BEGIN(FrameHostMsg_DidFailProvisionalLoadWithError_Params) |
122 // Error code as reported in the DidFailProvisionalLoad callback. | 126 // Error code as reported in the DidFailProvisionalLoad callback. |
123 IPC_STRUCT_MEMBER(int, error_code) | 127 IPC_STRUCT_MEMBER(int, error_code) |
124 // An error message generated from the error_code. This can be an empty | 128 // An error message generated from the error_code. This can be an empty |
125 // string if we were unable to find a meaningful description. | 129 // string if we were unable to find a meaningful description. |
126 IPC_STRUCT_MEMBER(base::string16, error_description) | 130 IPC_STRUCT_MEMBER(base::string16, error_description) |
127 // The URL that the error is reported for. | 131 // The URL that the error is reported for. |
128 IPC_STRUCT_MEMBER(GURL, url) | 132 IPC_STRUCT_MEMBER(GURL, url) |
129 // True if the failure is the result of navigating to a POST again | 133 // True if the failure is the result of navigating to a POST again |
(...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1159 IPC_MESSAGE_ROUTED3(FrameHostMsg_SavableResourceLinksResponse, | 1163 IPC_MESSAGE_ROUTED3(FrameHostMsg_SavableResourceLinksResponse, |
1160 GURL /* frame URL */, | 1164 GURL /* frame URL */, |
1161 std::vector<GURL> /* savable resource links */, | 1165 std::vector<GURL> /* savable resource links */, |
1162 std::vector<content::Referrer> /* referrers */) | 1166 std::vector<content::Referrer> /* referrers */) |
1163 | 1167 |
1164 // Response to FrameMsg_GetSavableResourceLinks in case the frame contains | 1168 // Response to FrameMsg_GetSavableResourceLinks in case the frame contains |
1165 // non-savable content (i.e. from a non-savable scheme) or if there were | 1169 // non-savable content (i.e. from a non-savable scheme) or if there were |
1166 // errors gathering the links. | 1170 // errors gathering the links. |
1167 IPC_MESSAGE_ROUTED0(FrameHostMsg_SavableResourceLinksError) | 1171 IPC_MESSAGE_ROUTED0(FrameHostMsg_SavableResourceLinksError) |
1168 | 1172 |
| 1173 // Sent when the renderer updates hint for importance of a tab. |
| 1174 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdatePageImportanceSignals, |
| 1175 content::PageImportanceSignals) |
| 1176 |
1169 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1177 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
1170 | 1178 |
1171 // Message to show/hide a popup menu using native controls. | 1179 // Message to show/hide a popup menu using native controls. |
1172 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 1180 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
1173 FrameHostMsg_ShowPopup_Params) | 1181 FrameHostMsg_ShowPopup_Params) |
1174 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 1182 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
1175 | 1183 |
1176 #endif | 1184 #endif |
1177 | 1185 |
1178 // Adding a new message? Stick to the sort order above: first platform | 1186 // Adding a new message? Stick to the sort order above: first platform |
1179 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1187 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1180 // platform independent FrameHostMsg, then ifdefs for platform specific | 1188 // platform independent FrameHostMsg, then ifdefs for platform specific |
1181 // FrameHostMsg. | 1189 // FrameHostMsg. |
OLD | NEW |