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

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

Issue 2697713003: Initial Implementation of Iframe Attribute for Feature Policy (Part 2) (Closed)
Patch Set: Codereview: renamed allowedFeatureNames to allowedFeatures + added more cases for propogating allow… Created 3 years, 10 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 30 matching lines...) Expand all
41 #include "content/public/common/page_state.h" 41 #include "content/public/common/page_state.h"
42 #include "content/public/common/previews_state.h" 42 #include "content/public/common/previews_state.h"
43 #include "content/public/common/referrer.h" 43 #include "content/public/common/referrer.h"
44 #include "content/public/common/request_context_type.h" 44 #include "content/public/common/request_context_type.h"
45 #include "content/public/common/resource_response.h" 45 #include "content/public/common/resource_response.h"
46 #include "content/public/common/stop_find_action.h" 46 #include "content/public/common/stop_find_action.h"
47 #include "content/public/common/three_d_api_types.h" 47 #include "content/public/common/three_d_api_types.h"
48 #include "ipc/ipc_message_macros.h" 48 #include "ipc/ipc_message_macros.h"
49 #include "ipc/ipc_platform_file.h" 49 #include "ipc/ipc_platform_file.h"
50 #include "ppapi/features/features.h" 50 #include "ppapi/features/features.h"
51 #include "third_party/WebKit/public/platform/WebFeaturePolicy.h"
51 #include "third_party/WebKit/public/platform/WebFocusType.h" 52 #include "third_party/WebKit/public/platform/WebFocusType.h"
52 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" 53 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h"
53 #include "third_party/WebKit/public/web/WebFindOptions.h" 54 #include "third_party/WebKit/public/web/WebFindOptions.h"
54 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" 55 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h"
55 #include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h" 56 #include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h"
56 #include "third_party/WebKit/public/web/WebTreeScopeType.h" 57 #include "third_party/WebKit/public/web/WebTreeScopeType.h"
57 #include "ui/gfx/geometry/rect.h" 58 #include "ui/gfx/geometry/rect.h"
58 #include "ui/gfx/geometry/rect_f.h" 59 #include "ui/gfx/geometry/rect_f.h"
59 #include "ui/gfx/ipc/gfx_param_traits.h" 60 #include "ui/gfx/ipc/gfx_param_traits.h"
60 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" 61 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::PreviewsState, 109 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::PreviewsState,
109 content::PREVIEWS_UNSPECIFIED, 110 content::PREVIEWS_UNSPECIFIED,
110 content::PREVIEWS_STATE_LAST) 111 content::PREVIEWS_STATE_LAST)
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)
114 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebFeaturePolicyFeature,
115 blink::WebFeaturePolicyFeature::NotFound,
nasko 2017/02/16 21:50:18 Since the enum starts at 0, you don't need to supp
116 blink::WebFeaturePolicyFeature::LAST_FEATURE)
113 117
114 IPC_STRUCT_TRAITS_BEGIN(blink::WebFindOptions) 118 IPC_STRUCT_TRAITS_BEGIN(blink::WebFindOptions)
115 IPC_STRUCT_TRAITS_MEMBER(forward) 119 IPC_STRUCT_TRAITS_MEMBER(forward)
116 IPC_STRUCT_TRAITS_MEMBER(matchCase) 120 IPC_STRUCT_TRAITS_MEMBER(matchCase)
117 IPC_STRUCT_TRAITS_MEMBER(findNext) 121 IPC_STRUCT_TRAITS_MEMBER(findNext)
118 IPC_STRUCT_TRAITS_MEMBER(force) 122 IPC_STRUCT_TRAITS_MEMBER(force)
119 IPC_STRUCT_TRAITS_END() 123 IPC_STRUCT_TRAITS_END()
120 124
121 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion) 125 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion)
122 IPC_STRUCT_TRAITS_MEMBER(color) 126 IPC_STRUCT_TRAITS_MEMBER(color)
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 IPC_STRUCT_TRAITS_END() 174 IPC_STRUCT_TRAITS_END()
171 175
172 IPC_STRUCT_TRAITS_BEGIN(content::FrameOwnerProperties) 176 IPC_STRUCT_TRAITS_BEGIN(content::FrameOwnerProperties)
173 IPC_STRUCT_TRAITS_MEMBER(name) 177 IPC_STRUCT_TRAITS_MEMBER(name)
174 IPC_STRUCT_TRAITS_MEMBER(scrolling_mode) 178 IPC_STRUCT_TRAITS_MEMBER(scrolling_mode)
175 IPC_STRUCT_TRAITS_MEMBER(margin_width) 179 IPC_STRUCT_TRAITS_MEMBER(margin_width)
176 IPC_STRUCT_TRAITS_MEMBER(margin_height) 180 IPC_STRUCT_TRAITS_MEMBER(margin_height)
177 IPC_STRUCT_TRAITS_MEMBER(allow_fullscreen) 181 IPC_STRUCT_TRAITS_MEMBER(allow_fullscreen)
178 IPC_STRUCT_TRAITS_MEMBER(allow_payment_request) 182 IPC_STRUCT_TRAITS_MEMBER(allow_payment_request)
179 IPC_STRUCT_TRAITS_MEMBER(required_csp) 183 IPC_STRUCT_TRAITS_MEMBER(required_csp)
184 IPC_STRUCT_TRAITS_MEMBER(allowed_features)
180 IPC_STRUCT_TRAITS_END() 185 IPC_STRUCT_TRAITS_END()
181 186
182 IPC_STRUCT_TRAITS_BEGIN(content::PageImportanceSignals) 187 IPC_STRUCT_TRAITS_BEGIN(content::PageImportanceSignals)
183 IPC_STRUCT_TRAITS_MEMBER(had_form_interaction) 188 IPC_STRUCT_TRAITS_MEMBER(had_form_interaction)
184 IPC_STRUCT_TRAITS_END() 189 IPC_STRUCT_TRAITS_END()
185 190
186 IPC_STRUCT_BEGIN(FrameHostMsg_DidFailProvisionalLoadWithError_Params) 191 IPC_STRUCT_BEGIN(FrameHostMsg_DidFailProvisionalLoadWithError_Params)
187 // Error code as reported in the DidFailProvisionalLoad callback. 192 // Error code as reported in the DidFailProvisionalLoad callback.
188 IPC_STRUCT_MEMBER(int, error_code) 193 IPC_STRUCT_MEMBER(int, error_code)
189 // An error message generated from the error_code. This can be an empty 194 // An error message generated from the error_code. This can be an empty
(...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after
1590 // nearest find result in the sending frame. 1595 // nearest find result in the sending frame.
1591 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, 1596 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply,
1592 int /* nfr_request_id */, 1597 int /* nfr_request_id */,
1593 float /* distance */) 1598 float /* distance */)
1594 #endif 1599 #endif
1595 1600
1596 // Adding a new message? Stick to the sort order above: first platform 1601 // Adding a new message? Stick to the sort order above: first platform
1597 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1602 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1598 // platform independent FrameHostMsg, then ifdefs for platform specific 1603 // platform independent FrameHostMsg, then ifdefs for platform specific
1599 // FrameHostMsg. 1604 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698