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

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

Issue 1310743003: Consistently use LoFi for an entire page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: using UserData and adressing nasko comments Created 5 years, 3 months 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 "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/data_reduction_proxy_lofi_user_data.h"
23 #include "content/public/common/frame_navigate_params.h" 24 #include "content/public/common/frame_navigate_params.h"
24 #include "content/public/common/javascript_message_type.h" 25 #include "content/public/common/javascript_message_type.h"
25 #include "content/public/common/message_port_types.h" 26 #include "content/public/common/message_port_types.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"
(...skipping 24 matching lines...) Expand all
57 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_UILoadMetricsReportType::Value, 58 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_UILoadMetricsReportType::Value,
58 FrameMsg_UILoadMetricsReportType::REPORT_TYPE_LAST) 59 FrameMsg_UILoadMetricsReportType::REPORT_TYPE_LAST)
59 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType, 60 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType,
60 blink::WebContextMenuData::MediaTypeLast) 61 blink::WebContextMenuData::MediaTypeLast)
61 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::InputFieldType, 62 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::InputFieldType,
62 blink::WebContextMenuData::InputFieldTypeLast) 63 blink::WebContextMenuData::InputFieldTypeLast)
63 IPC_ENUM_TRAITS(blink::WebSandboxFlags) // Bitmask. 64 IPC_ENUM_TRAITS(blink::WebSandboxFlags) // Bitmask.
64 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTreeScopeType, 65 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTreeScopeType,
65 blink::WebTreeScopeType::Last) 66 blink::WebTreeScopeType::Last)
66 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) 67 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST)
68 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::LoFiState,
69 content::LOFI_ON,
70 content::LOFI_DEFAULT)
67 71
68 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion) 72 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion)
69 IPC_STRUCT_TRAITS_MEMBER(color) 73 IPC_STRUCT_TRAITS_MEMBER(color)
70 IPC_STRUCT_TRAITS_MEMBER(label) 74 IPC_STRUCT_TRAITS_MEMBER(label)
71 IPC_STRUCT_TRAITS_END() 75 IPC_STRUCT_TRAITS_END()
72 76
73 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams) 77 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams)
74 IPC_STRUCT_TRAITS_MEMBER(media_type) 78 IPC_STRUCT_TRAITS_MEMBER(media_type)
75 IPC_STRUCT_TRAITS_MEMBER(x) 79 IPC_STRUCT_TRAITS_MEMBER(x)
76 IPC_STRUCT_TRAITS_MEMBER(y) 80 IPC_STRUCT_TRAITS_MEMBER(y)
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 IPC_STRUCT_TRAITS_MEMBER(page_state) 304 IPC_STRUCT_TRAITS_MEMBER(page_state)
301 IPC_STRUCT_TRAITS_MEMBER(page_id) 305 IPC_STRUCT_TRAITS_MEMBER(page_id)
302 IPC_STRUCT_TRAITS_MEMBER(nav_entry_id) 306 IPC_STRUCT_TRAITS_MEMBER(nav_entry_id)
303 IPC_STRUCT_TRAITS_MEMBER(is_same_document_history_load) 307 IPC_STRUCT_TRAITS_MEMBER(is_same_document_history_load)
304 IPC_STRUCT_TRAITS_MEMBER(has_committed_real_load) 308 IPC_STRUCT_TRAITS_MEMBER(has_committed_real_load)
305 IPC_STRUCT_TRAITS_MEMBER(intended_as_new_entry) 309 IPC_STRUCT_TRAITS_MEMBER(intended_as_new_entry)
306 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset) 310 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset)
307 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset) 311 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset)
308 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length) 312 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length)
309 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list) 313 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list)
314 IPC_STRUCT_TRAITS_MEMBER(lofi_state)
310 IPC_STRUCT_TRAITS_END() 315 IPC_STRUCT_TRAITS_END()
311 316
312 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) 317 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState)
313 IPC_STRUCT_TRAITS_MEMBER(origin) 318 IPC_STRUCT_TRAITS_MEMBER(origin)
314 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) 319 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags)
315 IPC_STRUCT_TRAITS_MEMBER(name) 320 IPC_STRUCT_TRAITS_MEMBER(name)
316 IPC_STRUCT_TRAITS_END() 321 IPC_STRUCT_TRAITS_END()
317 322
318 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_WidgetParams) 323 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_WidgetParams)
319 // Gives the routing ID for the RenderWidget that will be attached to the 324 // Gives the routing ID for the RenderWidget that will be attached to the
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
1186 // for details. 1191 // for details.
1187 IPC_SYNC_MESSAGE_CONTROL2_0(FrameHostMsg_PreCacheFontCharacters, 1192 IPC_SYNC_MESSAGE_CONTROL2_0(FrameHostMsg_PreCacheFontCharacters,
1188 LOGFONT /* font_data */, 1193 LOGFONT /* font_data */,
1189 base::string16 /* characters */) 1194 base::string16 /* characters */)
1190 #endif 1195 #endif
1191 1196
1192 // Adding a new message? Stick to the sort order above: first platform 1197 // Adding a new message? Stick to the sort order above: first platform
1193 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1198 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1194 // platform independent FrameHostMsg, then ifdefs for platform specific 1199 // platform independent FrameHostMsg, then ifdefs for platform specific
1195 // FrameHostMsg. 1200 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698