OLD | NEW |
---|---|
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...) Loading... | |
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...) Loading... | |
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...) Loading... | |
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 // conatainer policy. |
alexmos
2017/04/06 00:44:22
nit: container
iclelland
2017/04/09 03:25:54
Done.
| |
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 337 matching lines...) Loading... | |
1165 // After this, it is no longer safe to show a pending navigation's URL without | 1170 // After this, it is no longer safe to show a pending navigation's URL without |
1166 // making a URL spoof possible. | 1171 // making a URL spoof possible. |
1167 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidAccessInitialDocument) | 1172 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidAccessInitialDocument) |
1168 | 1173 |
1169 // Sent when the RenderFrame or RenderFrameProxy either updates its opener to | 1174 // Sent when the RenderFrame or RenderFrameProxy either updates its opener to |
1170 // another frame identified by |opener_routing_id|, or, if |opener_routing_id| | 1175 // another frame identified by |opener_routing_id|, or, if |opener_routing_id| |
1171 // is MSG_ROUTING_NONE, the frame disowns its opener for the lifetime of the | 1176 // is MSG_ROUTING_NONE, the frame disowns its opener for the lifetime of the |
1172 // window. | 1177 // window. |
1173 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeOpener, int /* opener_routing_id */) | 1178 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeOpener, int /* opener_routing_id */) |
1174 | 1179 |
1175 // Notifies the browser that sandbox flags have changed for a subframe of this | 1180 // Notifies the browser that sandbox flags or container policy have changed for |
1176 // frame. | 1181 // a subframe of this frame. |
1177 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeSandboxFlags, | 1182 IPC_MESSAGE_ROUTED3( |
1178 int32_t /* subframe_routing_id */, | 1183 FrameHostMsg_DidChangeFramePolicy, |
1179 blink::WebSandboxFlags /* updated_flags */) | 1184 int32_t /* subframe_routing_id */, |
1185 blink::WebSandboxFlags /* updated_flags */, | |
1186 content::ParsedFeaturePolicyHeader /* updated container policy */) | |
1180 | 1187 |
1181 // Notifies the browser that frame owner properties have changed for a subframe | 1188 // Notifies the browser that frame owner properties have changed for a subframe |
1182 // of this frame. | 1189 // of this frame. |
1183 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeFrameOwnerProperties, | 1190 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeFrameOwnerProperties, |
1184 int32_t /* subframe_routing_id */, | 1191 int32_t /* subframe_routing_id */, |
1185 content::FrameOwnerProperties /* frame_owner_properties */) | 1192 content::FrameOwnerProperties /* frame_owner_properties */) |
1186 | 1193 |
1187 // Notifies the browser that document has parsed the body. This is used by the | 1194 // Notifies the browser that document has parsed the body. This is used by the |
1188 // ResourceScheduler as an indication that bandwidth contention won't block | 1195 // ResourceScheduler as an indication that bandwidth contention won't block |
1189 // first paint. | 1196 // first paint. |
(...skipping 464 matching lines...) Loading... | |
1654 int /* nfr_request_id */, | 1661 int /* nfr_request_id */, |
1655 float /* distance */) | 1662 float /* distance */) |
1656 | 1663 |
1657 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder) | 1664 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder) |
1658 #endif | 1665 #endif |
1659 | 1666 |
1660 // Adding a new message? Stick to the sort order above: first platform | 1667 // Adding a new message? Stick to the sort order above: first platform |
1661 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1668 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1662 // platform independent FrameHostMsg, then ifdefs for platform specific | 1669 // platform independent FrameHostMsg, then ifdefs for platform specific |
1663 // FrameHostMsg. | 1670 // FrameHostMsg. |
OLD | NEW |