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

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

Issue 2797813002: Replicate feature policy container policies. (Closed)
Patch Set: Addressing review comments Created 3 years, 8 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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 IPC_STRUCT_TRAITS_MEMBER(matches_all_origins) 421 IPC_STRUCT_TRAITS_MEMBER(matches_all_origins)
422 IPC_STRUCT_TRAITS_MEMBER(origins) 422 IPC_STRUCT_TRAITS_MEMBER(origins)
423 IPC_STRUCT_TRAITS_END() 423 IPC_STRUCT_TRAITS_END()
424 424
425 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) 425 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState)
426 IPC_STRUCT_TRAITS_MEMBER(origin) 426 IPC_STRUCT_TRAITS_MEMBER(origin)
427 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) 427 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags)
428 IPC_STRUCT_TRAITS_MEMBER(name) 428 IPC_STRUCT_TRAITS_MEMBER(name)
429 IPC_STRUCT_TRAITS_MEMBER(unique_name) 429 IPC_STRUCT_TRAITS_MEMBER(unique_name)
430 IPC_STRUCT_TRAITS_MEMBER(feature_policy_header) 430 IPC_STRUCT_TRAITS_MEMBER(feature_policy_header)
431 IPC_STRUCT_TRAITS_MEMBER(container_policy)
431 IPC_STRUCT_TRAITS_MEMBER(accumulated_csp_headers) 432 IPC_STRUCT_TRAITS_MEMBER(accumulated_csp_headers)
432 IPC_STRUCT_TRAITS_MEMBER(scope) 433 IPC_STRUCT_TRAITS_MEMBER(scope)
433 IPC_STRUCT_TRAITS_MEMBER(insecure_request_policy) 434 IPC_STRUCT_TRAITS_MEMBER(insecure_request_policy)
434 IPC_STRUCT_TRAITS_MEMBER(has_potentially_trustworthy_unique_origin) 435 IPC_STRUCT_TRAITS_MEMBER(has_potentially_trustworthy_unique_origin)
435 IPC_STRUCT_TRAITS_END() 436 IPC_STRUCT_TRAITS_END()
436 437
437 // Parameters included with an OpenURL request. 438 // Parameters included with an OpenURL request.
438 // |is_history_navigation_in_new_child| is true in the case that the browser 439 // |is_history_navigation_in_new_child| is true in the case that the browser
439 // process should look for an existing history item for the frame. 440 // process should look for an existing history item for the frame.
440 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) 441 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params)
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 // hittesting. 541 // hittesting.
541 IPC_STRUCT_MEMBER(bool, ignored_for_hittest) 542 IPC_STRUCT_MEMBER(bool, ignored_for_hittest)
542 IPC_STRUCT_END() 543 IPC_STRUCT_END()
543 544
544 IPC_STRUCT_BEGIN(FrameHostMsg_CreateChildFrame_Params) 545 IPC_STRUCT_BEGIN(FrameHostMsg_CreateChildFrame_Params)
545 IPC_STRUCT_MEMBER(int32_t, parent_routing_id) 546 IPC_STRUCT_MEMBER(int32_t, parent_routing_id)
546 IPC_STRUCT_MEMBER(blink::WebTreeScopeType, scope) 547 IPC_STRUCT_MEMBER(blink::WebTreeScopeType, scope)
547 IPC_STRUCT_MEMBER(std::string, frame_name) 548 IPC_STRUCT_MEMBER(std::string, frame_name)
548 IPC_STRUCT_MEMBER(std::string, frame_unique_name) 549 IPC_STRUCT_MEMBER(std::string, frame_unique_name)
549 IPC_STRUCT_MEMBER(blink::WebSandboxFlags, sandbox_flags) 550 IPC_STRUCT_MEMBER(blink::WebSandboxFlags, sandbox_flags)
551 IPC_STRUCT_MEMBER(content::ParsedFeaturePolicyHeader, container_policy)
550 IPC_STRUCT_MEMBER(content::FrameOwnerProperties, frame_owner_properties) 552 IPC_STRUCT_MEMBER(content::FrameOwnerProperties, frame_owner_properties)
551 IPC_STRUCT_END() 553 IPC_STRUCT_END()
552 554
553 IPC_STRUCT_TRAITS_BEGIN(content::CSPSource) 555 IPC_STRUCT_TRAITS_BEGIN(content::CSPSource)
554 IPC_STRUCT_TRAITS_MEMBER(scheme) 556 IPC_STRUCT_TRAITS_MEMBER(scheme)
555 IPC_STRUCT_TRAITS_MEMBER(host) 557 IPC_STRUCT_TRAITS_MEMBER(host)
556 IPC_STRUCT_TRAITS_MEMBER(is_host_wildcard) 558 IPC_STRUCT_TRAITS_MEMBER(is_host_wildcard)
557 IPC_STRUCT_TRAITS_MEMBER(port) 559 IPC_STRUCT_TRAITS_MEMBER(port)
558 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard) 560 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard)
559 IPC_STRUCT_TRAITS_MEMBER(path) 561 IPC_STRUCT_TRAITS_MEMBER(path)
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 IPC_MESSAGE_ROUTED2(FrameMsg_ExtractSmartClipData, 808 IPC_MESSAGE_ROUTED2(FrameMsg_ExtractSmartClipData,
807 uint32_t /* id */, 809 uint32_t /* id */,
808 gfx::Rect /* rect */) 810 gfx::Rect /* rect */)
809 811
810 // Change the accessibility mode in the renderer process. 812 // Change the accessibility mode in the renderer process.
811 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode, content::AccessibilityMode) 813 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode, content::AccessibilityMode)
812 814
813 // Dispatch a load event in the iframe element containing this frame. 815 // Dispatch a load event in the iframe element containing this frame.
814 IPC_MESSAGE_ROUTED0(FrameMsg_DispatchLoad) 816 IPC_MESSAGE_ROUTED0(FrameMsg_DispatchLoad)
815 817
816 // Notifies the frame that its parent has changed the frame's sandbox flags. 818 // Notifies the frame that its parent has changed the frame's sandbox flags or
817 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateSandboxFlags, blink::WebSandboxFlags) 819 // container policy.
820 IPC_MESSAGE_ROUTED2(FrameMsg_DidUpdateFramePolicy,
821 blink::WebSandboxFlags,
822 content::ParsedFeaturePolicyHeader)
818 823
819 // Update a proxy's window.name property. Used when the frame's name is 824 // Update a proxy's window.name property. Used when the frame's name is
820 // changed in another process. 825 // changed in another process.
821 IPC_MESSAGE_ROUTED2(FrameMsg_DidUpdateName, 826 IPC_MESSAGE_ROUTED2(FrameMsg_DidUpdateName,
822 std::string /* name */, 827 std::string /* name */,
823 std::string /* unique_name */) 828 std::string /* unique_name */)
824 829
825 // Updates replicated ContentSecurityPolicy in a frame proxy. 830 // Updates replicated ContentSecurityPolicy in a frame proxy.
826 IPC_MESSAGE_ROUTED1(FrameMsg_AddContentSecurityPolicies, 831 IPC_MESSAGE_ROUTED1(FrameMsg_AddContentSecurityPolicies,
827 std::vector<content::ContentSecurityPolicyHeader>) 832 std::vector<content::ContentSecurityPolicyHeader>)
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 // After this, it is no longer safe to show a pending navigation's URL without 1172 // After this, it is no longer safe to show a pending navigation's URL without
1168 // making a URL spoof possible. 1173 // making a URL spoof possible.
1169 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidAccessInitialDocument) 1174 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidAccessInitialDocument)
1170 1175
1171 // Sent when the RenderFrame or RenderFrameProxy either updates its opener to 1176 // Sent when the RenderFrame or RenderFrameProxy either updates its opener to
1172 // another frame identified by |opener_routing_id|, or, if |opener_routing_id| 1177 // another frame identified by |opener_routing_id|, or, if |opener_routing_id|
1173 // is MSG_ROUTING_NONE, the frame disowns its opener for the lifetime of the 1178 // is MSG_ROUTING_NONE, the frame disowns its opener for the lifetime of the
1174 // window. 1179 // window.
1175 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeOpener, int /* opener_routing_id */) 1180 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeOpener, int /* opener_routing_id */)
1176 1181
1177 // Notifies the browser that sandbox flags have changed for a subframe of this 1182 // Notifies the browser that sandbox flags or container policy have changed for
1178 // frame. 1183 // a subframe of this frame.
1179 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeSandboxFlags, 1184 IPC_MESSAGE_ROUTED3(
1180 int32_t /* subframe_routing_id */, 1185 FrameHostMsg_DidChangeFramePolicy,
1181 blink::WebSandboxFlags /* updated_flags */) 1186 int32_t /* subframe_routing_id */,
1187 blink::WebSandboxFlags /* updated_flags */,
1188 content::ParsedFeaturePolicyHeader /* updated container policy */)
1182 1189
1183 // Notifies the browser that frame owner properties have changed for a subframe 1190 // Notifies the browser that frame owner properties have changed for a subframe
1184 // of this frame. 1191 // of this frame.
1185 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeFrameOwnerProperties, 1192 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeFrameOwnerProperties,
1186 int32_t /* subframe_routing_id */, 1193 int32_t /* subframe_routing_id */,
1187 content::FrameOwnerProperties /* frame_owner_properties */) 1194 content::FrameOwnerProperties /* frame_owner_properties */)
1188 1195
1189 // Notifies the browser that document has parsed the body. This is used by the 1196 // Notifies the browser that document has parsed the body. This is used by the
1190 // ResourceScheduler as an indication that bandwidth contention won't block 1197 // ResourceScheduler as an indication that bandwidth contention won't block
1191 // first paint. 1198 // first paint.
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
1649 int /* nfr_request_id */, 1656 int /* nfr_request_id */,
1650 float /* distance */) 1657 float /* distance */)
1651 1658
1652 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder) 1659 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder)
1653 #endif 1660 #endif
1654 1661
1655 // Adding a new message? Stick to the sort order above: first platform 1662 // Adding a new message? Stick to the sort order above: first platform
1656 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1663 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1657 // platform independent FrameHostMsg, then ifdefs for platform specific 1664 // platform independent FrameHostMsg, then ifdefs for platform specific
1658 // FrameHostMsg. 1665 // FrameHostMsg.
OLDNEW
« no previous file with comments | « content/common/feature_policy/feature_policy.cc ('k') | content/common/frame_replication_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698