Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(641)

Side by Side Diff: content/common/frame_messages.h

Issue 1422473004: Vector-of-structs (instead of struct-of-vectors) in "savable resources" IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@page-serialization-original-url-yay
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/common/savable_subframe.h"
18 #include "content/public/common/color_suggestion.h" 19 #include "content/public/common/color_suggestion.h"
19 #include "content/public/common/common_param_traits.h" 20 #include "content/public/common/common_param_traits.h"
20 #include "content/public/common/console_message_level.h" 21 #include "content/public/common/console_message_level.h"
21 #include "content/public/common/context_menu_params.h" 22 #include "content/public/common/context_menu_params.h"
22 #include "content/public/common/frame_navigate_params.h" 23 #include "content/public/common/frame_navigate_params.h"
23 #include "content/public/common/javascript_message_type.h" 24 #include "content/public/common/javascript_message_type.h"
24 #include "content/public/common/message_port_types.h" 25 #include "content/public/common/message_port_types.h"
25 #include "content/public/common/page_importance_signals.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"
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 // Color of the text track text. 392 // Color of the text track text.
392 IPC_STRUCT_MEMBER(std::string, text_track_text_color) 393 IPC_STRUCT_MEMBER(std::string, text_track_text_color)
393 394
394 // Text shadow (edge style) of the text track text. 395 // Text shadow (edge style) of the text track text.
395 IPC_STRUCT_MEMBER(std::string, text_track_text_shadow) 396 IPC_STRUCT_MEMBER(std::string, text_track_text_shadow)
396 397
397 // Size of the text track text. 398 // Size of the text track text.
398 IPC_STRUCT_MEMBER(std::string, text_track_text_size) 399 IPC_STRUCT_MEMBER(std::string, text_track_text_size)
399 IPC_STRUCT_END() 400 IPC_STRUCT_END()
400 401
402 IPC_STRUCT_TRAITS_BEGIN(content::SavableSubframe)
ncarter (slow) 2015/10/28 22:28:38 Just mentioning this as an option in case you hadn
ncarter (slow) 2015/10/28 22:29:34 Duh, you totally explained this in your commit com
403 IPC_STRUCT_TRAITS_MEMBER(original_url)
404 IPC_STRUCT_TRAITS_MEMBER(routing_id)
405 IPC_STRUCT_TRAITS_END()
406
401 #if defined(OS_MACOSX) || defined(OS_ANDROID) 407 #if defined(OS_MACOSX) || defined(OS_ANDROID)
402 // This message is used for supporting popup menus on Mac OS X and Android using 408 // This message is used for supporting popup menus on Mac OS X and Android using
403 // native controls. See the FrameHostMsg_ShowPopup message. 409 // native controls. See the FrameHostMsg_ShowPopup message.
404 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params) 410 IPC_STRUCT_BEGIN(FrameHostMsg_ShowPopup_Params)
405 // Position on the screen. 411 // Position on the screen.
406 IPC_STRUCT_MEMBER(gfx::Rect, bounds) 412 IPC_STRUCT_MEMBER(gfx::Rect, bounds)
407 413
408 // The height of each item in the menu. 414 // The height of each item in the menu.
409 IPC_STRUCT_MEMBER(int, item_height) 415 IPC_STRUCT_MEMBER(int, item_height)
410 416
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 1173
1168 // Sent when the renderer displays insecure content in a secure origin. 1174 // Sent when the renderer displays insecure content in a secure origin.
1169 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidDisplayInsecureContent) 1175 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidDisplayInsecureContent)
1170 1176
1171 // Sent when the renderer runs insecure content in a secure origin. 1177 // Sent when the renderer runs insecure content in a secure origin.
1172 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidRunInsecureContent, 1178 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidRunInsecureContent,
1173 std::string /* security_origin */, 1179 std::string /* security_origin */,
1174 GURL /* target URL */) 1180 GURL /* target URL */)
1175 1181
1176 // Response to FrameMsg_GetSavableResourceLinks. 1182 // Response to FrameMsg_GetSavableResourceLinks.
1177 IPC_MESSAGE_ROUTED4(FrameHostMsg_SavableResourceLinksResponse, 1183 IPC_MESSAGE_ROUTED3(FrameHostMsg_SavableResourceLinksResponse,
1178 std::vector<GURL> /* savable resource links */, 1184 std::vector<GURL> /* savable resource links */,
1179 std::vector<content::Referrer> /* referrers */, 1185 std::vector<content::Referrer> /* referrers */,
1180 std::vector<GURL> /* subframe original links */, 1186 std::vector<content::SavableSubframe> /* subframes */);
1181 std::vector<int> /* subframe routing ids */)
1182 1187
1183 // Response to FrameMsg_GetSavableResourceLinks in case the frame contains 1188 // Response to FrameMsg_GetSavableResourceLinks in case the frame contains
1184 // non-savable content (i.e. from a non-savable scheme) or if there were 1189 // non-savable content (i.e. from a non-savable scheme) or if there were
1185 // errors gathering the links. 1190 // errors gathering the links.
1186 IPC_MESSAGE_ROUTED0(FrameHostMsg_SavableResourceLinksError) 1191 IPC_MESSAGE_ROUTED0(FrameHostMsg_SavableResourceLinksError)
1187 1192
1188 // Response to FrameMsg_GetSerializedHtmlWithLocalLinks. 1193 // Response to FrameMsg_GetSerializedHtmlWithLocalLinks.
1189 IPC_MESSAGE_ROUTED2(FrameHostMsg_SerializedHtmlWithLocalLinksResponse, 1194 IPC_MESSAGE_ROUTED2(FrameHostMsg_SerializedHtmlWithLocalLinksResponse,
1190 std::string /* data buffer */, 1195 std::string /* data buffer */,
1191 bool /* end of data? */) 1196 bool /* end of data? */)
1192 1197
1193 // Sent when the renderer updates hint for importance of a tab. 1198 // Sent when the renderer updates hint for importance of a tab.
1194 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdatePageImportanceSignals, 1199 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdatePageImportanceSignals,
1195 content::PageImportanceSignals) 1200 content::PageImportanceSignals)
1196 1201
1197 #if defined(OS_MACOSX) || defined(OS_ANDROID) 1202 #if defined(OS_MACOSX) || defined(OS_ANDROID)
1198 1203
1199 // Message to show/hide a popup menu using native controls. 1204 // Message to show/hide a popup menu using native controls.
1200 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 1205 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
1201 FrameHostMsg_ShowPopup_Params) 1206 FrameHostMsg_ShowPopup_Params)
1202 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 1207 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
1203 1208
1204 #endif 1209 #endif
1205 1210
1206 // Adding a new message? Stick to the sort order above: first platform 1211 // Adding a new message? Stick to the sort order above: first platform
1207 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1212 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1208 // platform independent FrameHostMsg, then ifdefs for platform specific 1213 // platform independent FrameHostMsg, then ifdefs for platform specific
1209 // FrameHostMsg. 1214 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698