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

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

Issue 2484633004: Change Lo-Fi bool to bitmask to support multiple Previews types (Closed)
Patch Set: use PreviewsState everywhere Created 4 years 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 19 matching lines...) Expand all
30 #include "content/public/common/common_param_traits.h" 30 #include "content/public/common/common_param_traits.h"
31 #include "content/public/common/console_message_level.h" 31 #include "content/public/common/console_message_level.h"
32 #include "content/public/common/context_menu_params.h" 32 #include "content/public/common/context_menu_params.h"
33 #include "content/public/common/file_chooser_file_info.h" 33 #include "content/public/common/file_chooser_file_info.h"
34 #include "content/public/common/file_chooser_params.h" 34 #include "content/public/common/file_chooser_params.h"
35 #include "content/public/common/form_field_data.h" 35 #include "content/public/common/form_field_data.h"
36 #include "content/public/common/frame_navigate_params.h" 36 #include "content/public/common/frame_navigate_params.h"
37 #include "content/public/common/javascript_message_type.h" 37 #include "content/public/common/javascript_message_type.h"
38 #include "content/public/common/page_importance_signals.h" 38 #include "content/public/common/page_importance_signals.h"
39 #include "content/public/common/page_state.h" 39 #include "content/public/common/page_state.h"
40 #include "content/public/common/previews_state.h"
40 #include "content/public/common/resource_response.h" 41 #include "content/public/common/resource_response.h"
41 #include "content/public/common/stop_find_action.h" 42 #include "content/public/common/stop_find_action.h"
42 #include "content/public/common/three_d_api_types.h" 43 #include "content/public/common/three_d_api_types.h"
43 #include "ipc/ipc_message_macros.h" 44 #include "ipc/ipc_message_macros.h"
44 #include "ipc/ipc_platform_file.h" 45 #include "ipc/ipc_platform_file.h"
45 #include "ppapi/features/features.h" 46 #include "ppapi/features/features.h"
46 #include "third_party/WebKit/public/platform/WebFocusType.h" 47 #include "third_party/WebKit/public/platform/WebFocusType.h"
47 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" 48 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h"
48 #include "third_party/WebKit/public/web/WebFindOptions.h" 49 #include "third_party/WebKit/public/web/WebFindOptions.h"
49 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" 50 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebFrameOwnerProperties::ScrollingMode, 99 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebFrameOwnerProperties::ScrollingMode,
99 blink::WebFrameOwnerProperties::ScrollingMode::Last) 100 blink::WebFrameOwnerProperties::ScrollingMode::Last)
100 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPermissionType, 101 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPermissionType,
101 blink::WebPermissionTypeLast) 102 blink::WebPermissionTypeLast)
102 IPC_ENUM_TRAITS_MAX_VALUE(content::StopFindAction, 103 IPC_ENUM_TRAITS_MAX_VALUE(content::StopFindAction,
103 content::STOP_FIND_ACTION_LAST) 104 content::STOP_FIND_ACTION_LAST)
104 IPC_ENUM_TRAITS(blink::WebSandboxFlags) // Bitmask. 105 IPC_ENUM_TRAITS(blink::WebSandboxFlags) // Bitmask.
105 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTreeScopeType, 106 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTreeScopeType,
106 blink::WebTreeScopeType::Last) 107 blink::WebTreeScopeType::Last)
107 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) 108 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST)
108 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::LoFiState, 109 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::PreviewsState,
109 content::LOFI_UNSPECIFIED, 110 content::PREVIEWS_UNSPECIFIED,
110 content::LOFI_ON) 111 content::MAX_PREVIEWS_STATE)
111 IPC_ENUM_TRAITS_MAX_VALUE(content::FileChooserParams::Mode, 112 IPC_ENUM_TRAITS_MAX_VALUE(content::FileChooserParams::Mode,
112 content::FileChooserParams::Save) 113 content::FileChooserParams::Save)
113 114
114 IPC_STRUCT_TRAITS_BEGIN(blink::WebFindOptions) 115 IPC_STRUCT_TRAITS_BEGIN(blink::WebFindOptions)
115 IPC_STRUCT_TRAITS_MEMBER(forward) 116 IPC_STRUCT_TRAITS_MEMBER(forward)
116 IPC_STRUCT_TRAITS_MEMBER(matchCase) 117 IPC_STRUCT_TRAITS_MEMBER(matchCase)
117 IPC_STRUCT_TRAITS_MEMBER(findNext) 118 IPC_STRUCT_TRAITS_MEMBER(findNext)
118 IPC_STRUCT_TRAITS_MEMBER(force) 119 IPC_STRUCT_TRAITS_MEMBER(force)
119 IPC_STRUCT_TRAITS_END() 120 IPC_STRUCT_TRAITS_END()
120 121
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 IPC_STRUCT_TRAITS_MEMBER(referrer) 331 IPC_STRUCT_TRAITS_MEMBER(referrer)
331 IPC_STRUCT_TRAITS_MEMBER(transition) 332 IPC_STRUCT_TRAITS_MEMBER(transition)
332 IPC_STRUCT_TRAITS_MEMBER(navigation_type) 333 IPC_STRUCT_TRAITS_MEMBER(navigation_type)
333 IPC_STRUCT_TRAITS_MEMBER(gesture) 334 IPC_STRUCT_TRAITS_MEMBER(gesture)
334 IPC_STRUCT_TRAITS_MEMBER(allow_download) 335 IPC_STRUCT_TRAITS_MEMBER(allow_download)
335 IPC_STRUCT_TRAITS_MEMBER(should_replace_current_entry) 336 IPC_STRUCT_TRAITS_MEMBER(should_replace_current_entry)
336 IPC_STRUCT_TRAITS_MEMBER(ui_timestamp) 337 IPC_STRUCT_TRAITS_MEMBER(ui_timestamp)
337 IPC_STRUCT_TRAITS_MEMBER(report_type) 338 IPC_STRUCT_TRAITS_MEMBER(report_type)
338 IPC_STRUCT_TRAITS_MEMBER(base_url_for_data_url) 339 IPC_STRUCT_TRAITS_MEMBER(base_url_for_data_url)
339 IPC_STRUCT_TRAITS_MEMBER(history_url_for_data_url) 340 IPC_STRUCT_TRAITS_MEMBER(history_url_for_data_url)
340 IPC_STRUCT_TRAITS_MEMBER(lofi_state) 341 IPC_STRUCT_TRAITS_MEMBER(previews_state)
341 IPC_STRUCT_TRAITS_MEMBER(navigation_start) 342 IPC_STRUCT_TRAITS_MEMBER(navigation_start)
342 IPC_STRUCT_TRAITS_MEMBER(method) 343 IPC_STRUCT_TRAITS_MEMBER(method)
343 IPC_STRUCT_TRAITS_MEMBER(post_data) 344 IPC_STRUCT_TRAITS_MEMBER(post_data)
344 IPC_STRUCT_TRAITS_END() 345 IPC_STRUCT_TRAITS_END()
345 346
346 IPC_STRUCT_TRAITS_BEGIN(content::BeginNavigationParams) 347 IPC_STRUCT_TRAITS_BEGIN(content::BeginNavigationParams)
347 IPC_STRUCT_TRAITS_MEMBER(headers) 348 IPC_STRUCT_TRAITS_MEMBER(headers)
348 IPC_STRUCT_TRAITS_MEMBER(load_flags) 349 IPC_STRUCT_TRAITS_MEMBER(load_flags)
349 IPC_STRUCT_TRAITS_MEMBER(skip_service_worker) 350 IPC_STRUCT_TRAITS_MEMBER(skip_service_worker)
350 IPC_STRUCT_TRAITS_MEMBER(request_context_type) 351 IPC_STRUCT_TRAITS_MEMBER(request_context_type)
(...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after
1513 // nearest find result in the sending frame. 1514 // nearest find result in the sending frame.
1514 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, 1515 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply,
1515 int /* nfr_request_id */, 1516 int /* nfr_request_id */,
1516 float /* distance */) 1517 float /* distance */)
1517 #endif 1518 #endif
1518 1519
1519 // Adding a new message? Stick to the sort order above: first platform 1520 // Adding a new message? Stick to the sort order above: first platform
1520 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1521 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1521 // platform independent FrameHostMsg, then ifdefs for platform specific 1522 // platform independent FrameHostMsg, then ifdefs for platform specific
1522 // FrameHostMsg. 1523 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698