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

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: fix ContentResourceProviderTest Created 3 years, 11 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
« no previous file with comments | « content/child/weburlresponse_extradata_impl.h ('k') | content/common/navigation_params.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/referrer.h" 41 #include "content/public/common/referrer.h"
41 #include "content/public/common/resource_response.h" 42 #include "content/public/common/resource_response.h"
42 #include "content/public/common/stop_find_action.h" 43 #include "content/public/common/stop_find_action.h"
43 #include "content/public/common/three_d_api_types.h" 44 #include "content/public/common/three_d_api_types.h"
44 #include "ipc/ipc_message_macros.h" 45 #include "ipc/ipc_message_macros.h"
45 #include "ipc/ipc_platform_file.h" 46 #include "ipc/ipc_platform_file.h"
46 #include "ppapi/features/features.h" 47 #include "ppapi/features/features.h"
47 #include "third_party/WebKit/public/platform/WebFocusType.h" 48 #include "third_party/WebKit/public/platform/WebFocusType.h"
48 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" 49 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h"
49 #include "third_party/WebKit/public/web/WebFindOptions.h" 50 #include "third_party/WebKit/public/web/WebFindOptions.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebFrameOwnerProperties::ScrollingMode, 97 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebFrameOwnerProperties::ScrollingMode,
97 blink::WebFrameOwnerProperties::ScrollingMode::Last) 98 blink::WebFrameOwnerProperties::ScrollingMode::Last)
98 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPermissionType, 99 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPermissionType,
99 blink::WebPermissionTypeLast) 100 blink::WebPermissionTypeLast)
100 IPC_ENUM_TRAITS_MAX_VALUE(content::StopFindAction, 101 IPC_ENUM_TRAITS_MAX_VALUE(content::StopFindAction,
101 content::STOP_FIND_ACTION_LAST) 102 content::STOP_FIND_ACTION_LAST)
102 IPC_ENUM_TRAITS(blink::WebSandboxFlags) // Bitmask. 103 IPC_ENUM_TRAITS(blink::WebSandboxFlags) // Bitmask.
103 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTreeScopeType, 104 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTreeScopeType,
104 blink::WebTreeScopeType::Last) 105 blink::WebTreeScopeType::Last)
105 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) 106 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST)
106 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::LoFiState, 107 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::PreviewsState,
107 content::LOFI_UNSPECIFIED, 108 content::PREVIEWS_UNSPECIFIED,
108 content::LOFI_ON) 109 content::PREVIEWS_STATE_LAST)
109 IPC_ENUM_TRAITS_MAX_VALUE(content::FileChooserParams::Mode, 110 IPC_ENUM_TRAITS_MAX_VALUE(content::FileChooserParams::Mode,
110 content::FileChooserParams::Save) 111 content::FileChooserParams::Save)
111 112
112 IPC_STRUCT_TRAITS_BEGIN(blink::WebFindOptions) 113 IPC_STRUCT_TRAITS_BEGIN(blink::WebFindOptions)
113 IPC_STRUCT_TRAITS_MEMBER(forward) 114 IPC_STRUCT_TRAITS_MEMBER(forward)
114 IPC_STRUCT_TRAITS_MEMBER(matchCase) 115 IPC_STRUCT_TRAITS_MEMBER(matchCase)
115 IPC_STRUCT_TRAITS_MEMBER(findNext) 116 IPC_STRUCT_TRAITS_MEMBER(findNext)
116 IPC_STRUCT_TRAITS_MEMBER(force) 117 IPC_STRUCT_TRAITS_MEMBER(force)
117 IPC_STRUCT_TRAITS_END() 118 IPC_STRUCT_TRAITS_END()
118 119
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 IPC_STRUCT_TRAITS_MEMBER(url) 329 IPC_STRUCT_TRAITS_MEMBER(url)
329 IPC_STRUCT_TRAITS_MEMBER(referrer) 330 IPC_STRUCT_TRAITS_MEMBER(referrer)
330 IPC_STRUCT_TRAITS_MEMBER(transition) 331 IPC_STRUCT_TRAITS_MEMBER(transition)
331 IPC_STRUCT_TRAITS_MEMBER(navigation_type) 332 IPC_STRUCT_TRAITS_MEMBER(navigation_type)
332 IPC_STRUCT_TRAITS_MEMBER(allow_download) 333 IPC_STRUCT_TRAITS_MEMBER(allow_download)
333 IPC_STRUCT_TRAITS_MEMBER(should_replace_current_entry) 334 IPC_STRUCT_TRAITS_MEMBER(should_replace_current_entry)
334 IPC_STRUCT_TRAITS_MEMBER(ui_timestamp) 335 IPC_STRUCT_TRAITS_MEMBER(ui_timestamp)
335 IPC_STRUCT_TRAITS_MEMBER(report_type) 336 IPC_STRUCT_TRAITS_MEMBER(report_type)
336 IPC_STRUCT_TRAITS_MEMBER(base_url_for_data_url) 337 IPC_STRUCT_TRAITS_MEMBER(base_url_for_data_url)
337 IPC_STRUCT_TRAITS_MEMBER(history_url_for_data_url) 338 IPC_STRUCT_TRAITS_MEMBER(history_url_for_data_url)
338 IPC_STRUCT_TRAITS_MEMBER(lofi_state) 339 IPC_STRUCT_TRAITS_MEMBER(previews_state)
339 IPC_STRUCT_TRAITS_MEMBER(navigation_start) 340 IPC_STRUCT_TRAITS_MEMBER(navigation_start)
340 IPC_STRUCT_TRAITS_MEMBER(method) 341 IPC_STRUCT_TRAITS_MEMBER(method)
341 IPC_STRUCT_TRAITS_MEMBER(post_data) 342 IPC_STRUCT_TRAITS_MEMBER(post_data)
342 IPC_STRUCT_TRAITS_END() 343 IPC_STRUCT_TRAITS_END()
343 344
344 IPC_STRUCT_TRAITS_BEGIN(content::BeginNavigationParams) 345 IPC_STRUCT_TRAITS_BEGIN(content::BeginNavigationParams)
345 IPC_STRUCT_TRAITS_MEMBER(headers) 346 IPC_STRUCT_TRAITS_MEMBER(headers)
346 IPC_STRUCT_TRAITS_MEMBER(load_flags) 347 IPC_STRUCT_TRAITS_MEMBER(load_flags)
347 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) 348 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture)
348 IPC_STRUCT_TRAITS_MEMBER(skip_service_worker) 349 IPC_STRUCT_TRAITS_MEMBER(skip_service_worker)
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1539 // nearest find result in the sending frame. 1540 // nearest find result in the sending frame.
1540 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, 1541 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply,
1541 int /* nfr_request_id */, 1542 int /* nfr_request_id */,
1542 float /* distance */) 1543 float /* distance */)
1543 #endif 1544 #endif
1544 1545
1545 // Adding a new message? Stick to the sort order above: first platform 1546 // Adding a new message? Stick to the sort order above: first platform
1546 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1547 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1547 // platform independent FrameHostMsg, then ifdefs for platform specific 1548 // platform independent FrameHostMsg, then ifdefs for platform specific
1548 // FrameHostMsg. 1549 // FrameHostMsg.
OLDNEW
« no previous file with comments | « content/child/weburlresponse_extradata_impl.h ('k') | content/common/navigation_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698