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 "base/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
9 #include "cc/surfaces/surface_id.h" | 9 #include "cc/surfaces/surface_id.h" |
10 #include "cc/surfaces/surface_sequence.h" | 10 #include "cc/surfaces/surface_sequence.h" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "content/common/content_param_traits.h" | 12 #include "content/common/content_param_traits.h" |
13 #include "content/common/frame_message_enums.h" | 13 #include "content/common/frame_message_enums.h" |
14 #include "content/common/frame_param.h" | 14 #include "content/common/frame_param.h" |
15 #include "content/common/frame_replication_state.h" | 15 #include "content/common/frame_replication_state.h" |
16 #include "content/common/navigation_gesture.h" | 16 #include "content/common/navigation_gesture.h" |
17 #include "content/common/navigation_params.h" | 17 #include "content/common/navigation_params.h" |
18 #include "content/common/resource_request_body.h" | 18 #include "content/common/resource_request_body.h" |
19 #include "content/public/common/color_suggestion.h" | 19 #include "content/public/common/color_suggestion.h" |
20 #include "content/public/common/common_param_traits.h" | 20 #include "content/public/common/common_param_traits.h" |
21 #include "content/public/common/console_message_level.h" | 21 #include "content/public/common/console_message_level.h" |
22 #include "content/public/common/context_menu_params.h" | 22 #include "content/public/common/context_menu_params.h" |
23 #include "content/public/common/frame_navigate_params.h" | 23 #include "content/public/common/frame_navigate_params.h" |
24 #include "content/public/common/javascript_message_type.h" | 24 #include "content/public/common/javascript_message_type.h" |
25 #include "content/public/common/message_port_types.h" | 25 #include "content/public/common/message_port_types.h" |
| 26 #include "content/public/common/page_importance_signals.h" |
26 #include "content/public/common/page_state.h" | 27 #include "content/public/common/page_state.h" |
27 #include "content/public/common/resource_response.h" | 28 #include "content/public/common/resource_response.h" |
28 #include "content/public/common/three_d_api_types.h" | 29 #include "content/public/common/three_d_api_types.h" |
29 #include "content/public/common/transition_element.h" | 30 #include "content/public/common/transition_element.h" |
30 #include "ipc/ipc_message_macros.h" | 31 #include "ipc/ipc_message_macros.h" |
31 #include "third_party/WebKit/public/web/WebTreeScopeType.h" | 32 #include "third_party/WebKit/public/web/WebTreeScopeType.h" |
32 #include "ui/gfx/ipc/gfx_param_traits.h" | 33 #include "ui/gfx/ipc/gfx_param_traits.h" |
33 #include "url/gurl.h" | 34 #include "url/gurl.h" |
34 #include "url/origin.h" | 35 #include "url/origin.h" |
35 | 36 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 IPC_STRUCT_TRAITS_MEMBER(request_id) | 116 IPC_STRUCT_TRAITS_MEMBER(request_id) |
116 IPC_STRUCT_TRAITS_MEMBER(render_widget_id) | 117 IPC_STRUCT_TRAITS_MEMBER(render_widget_id) |
117 IPC_STRUCT_TRAITS_MEMBER(link_followed) | 118 IPC_STRUCT_TRAITS_MEMBER(link_followed) |
118 IPC_STRUCT_TRAITS_END() | 119 IPC_STRUCT_TRAITS_END() |
119 | 120 |
120 IPC_STRUCT_TRAITS_BEGIN(content::TransitionElement) | 121 IPC_STRUCT_TRAITS_BEGIN(content::TransitionElement) |
121 IPC_STRUCT_TRAITS_MEMBER(id) | 122 IPC_STRUCT_TRAITS_MEMBER(id) |
122 IPC_STRUCT_TRAITS_MEMBER(rect) | 123 IPC_STRUCT_TRAITS_MEMBER(rect) |
123 IPC_STRUCT_TRAITS_END() | 124 IPC_STRUCT_TRAITS_END() |
124 | 125 |
| 126 IPC_STRUCT_TRAITS_BEGIN(content::PageImportanceSignals) |
| 127 IPC_STRUCT_TRAITS_MEMBER(had_form_interaction) |
| 128 IPC_STRUCT_TRAITS_END() |
125 | 129 |
126 IPC_STRUCT_BEGIN(FrameHostMsg_DidFailProvisionalLoadWithError_Params) | 130 IPC_STRUCT_BEGIN(FrameHostMsg_DidFailProvisionalLoadWithError_Params) |
127 // Error code as reported in the DidFailProvisionalLoad callback. | 131 // Error code as reported in the DidFailProvisionalLoad callback. |
128 IPC_STRUCT_MEMBER(int, error_code) | 132 IPC_STRUCT_MEMBER(int, error_code) |
129 // An error message generated from the error_code. This can be an empty | 133 // An error message generated from the error_code. This can be an empty |
130 // string if we were unable to find a meaningful description. | 134 // string if we were unable to find a meaningful description. |
131 IPC_STRUCT_MEMBER(base::string16, error_description) | 135 IPC_STRUCT_MEMBER(base::string16, error_description) |
132 // The URL that the error is reported for. | 136 // The URL that the error is reported for. |
133 IPC_STRUCT_MEMBER(GURL, url) | 137 IPC_STRUCT_MEMBER(GURL, url) |
134 // True if the failure is the result of navigating to a POST again | 138 // True if the failure is the result of navigating to a POST again |
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1157 FrameMsg_PostMessage_Params) | 1161 FrameMsg_PostMessage_Params) |
1158 | 1162 |
1159 // Sent when the renderer displays insecure content in a secure origin. | 1163 // Sent when the renderer displays insecure content in a secure origin. |
1160 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidDisplayInsecureContent) | 1164 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidDisplayInsecureContent) |
1161 | 1165 |
1162 // Sent when the renderer runs insecure content in a secure origin. | 1166 // Sent when the renderer runs insecure content in a secure origin. |
1163 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidRunInsecureContent, | 1167 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidRunInsecureContent, |
1164 std::string /* security_origin */, | 1168 std::string /* security_origin */, |
1165 GURL /* target URL */) | 1169 GURL /* target URL */) |
1166 | 1170 |
| 1171 // Sent when the renderer updates hint for importance of a tab. |
| 1172 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdatePageImportanceSignals, |
| 1173 content::PageImportanceSignals) |
| 1174 |
1167 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1175 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
1168 | 1176 |
1169 // Message to show/hide a popup menu using native controls. | 1177 // Message to show/hide a popup menu using native controls. |
1170 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 1178 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
1171 FrameHostMsg_ShowPopup_Params) | 1179 FrameHostMsg_ShowPopup_Params) |
1172 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 1180 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
1173 | 1181 |
1174 #endif | 1182 #endif |
1175 | 1183 |
1176 #if defined(OS_MACOSX) | 1184 #if defined(OS_MACOSX) |
1177 // Request that the browser load a font into shared memory for us. | 1185 // Request that the browser load a font into shared memory for us. |
1178 IPC_SYNC_MESSAGE_CONTROL1_3(FrameHostMsg_LoadFont, | 1186 IPC_SYNC_MESSAGE_CONTROL1_3(FrameHostMsg_LoadFont, |
1179 FontDescriptor /* font to load */, | 1187 FontDescriptor /* font to load */, |
1180 uint32 /* buffer size */, | 1188 uint32 /* buffer size */, |
1181 base::SharedMemoryHandle /* font data */, | 1189 base::SharedMemoryHandle /* font data */, |
1182 uint32 /* font id */) | 1190 uint32 /* font id */) |
1183 #elif defined(OS_WIN) | 1191 #elif defined(OS_WIN) |
1184 // Request that the given font characters be loaded by the browser so it's | 1192 // Request that the given font characters be loaded by the browser so it's |
1185 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 1193 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
1186 // for details. | 1194 // for details. |
1187 IPC_SYNC_MESSAGE_CONTROL2_0(FrameHostMsg_PreCacheFontCharacters, | 1195 IPC_SYNC_MESSAGE_CONTROL2_0(FrameHostMsg_PreCacheFontCharacters, |
1188 LOGFONT /* font_data */, | 1196 LOGFONT /* font_data */, |
1189 base::string16 /* characters */) | 1197 base::string16 /* characters */) |
1190 #endif | 1198 #endif |
1191 | 1199 |
1192 // Adding a new message? Stick to the sort order above: first platform | 1200 // Adding a new message? Stick to the sort order above: first platform |
1193 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1201 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1194 // platform independent FrameHostMsg, then ifdefs for platform specific | 1202 // platform independent FrameHostMsg, then ifdefs for platform specific |
1195 // FrameHostMsg. | 1203 // FrameHostMsg. |
OLD | NEW |