| 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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 IPC_STRUCT_TRAITS_MEMBER(allow_star) | 563 IPC_STRUCT_TRAITS_MEMBER(allow_star) |
| 564 IPC_STRUCT_TRAITS_MEMBER(sources) | 564 IPC_STRUCT_TRAITS_MEMBER(sources) |
| 565 IPC_STRUCT_TRAITS_END() | 565 IPC_STRUCT_TRAITS_END() |
| 566 | 566 |
| 567 IPC_STRUCT_TRAITS_BEGIN(content::CSPDirective) | 567 IPC_STRUCT_TRAITS_BEGIN(content::CSPDirective) |
| 568 IPC_STRUCT_TRAITS_MEMBER(name) | 568 IPC_STRUCT_TRAITS_MEMBER(name) |
| 569 IPC_STRUCT_TRAITS_MEMBER(source_list) | 569 IPC_STRUCT_TRAITS_MEMBER(source_list) |
| 570 IPC_STRUCT_TRAITS_END() | 570 IPC_STRUCT_TRAITS_END() |
| 571 | 571 |
| 572 IPC_STRUCT_TRAITS_BEGIN(content::ContentSecurityPolicy) | 572 IPC_STRUCT_TRAITS_BEGIN(content::ContentSecurityPolicy) |
| 573 IPC_STRUCT_TRAITS_MEMBER(disposition) | 573 IPC_STRUCT_TRAITS_MEMBER(header) |
| 574 IPC_STRUCT_TRAITS_MEMBER(source) | |
| 575 IPC_STRUCT_TRAITS_MEMBER(directives) | 574 IPC_STRUCT_TRAITS_MEMBER(directives) |
| 576 IPC_STRUCT_TRAITS_MEMBER(report_endpoints) | 575 IPC_STRUCT_TRAITS_MEMBER(report_endpoints) |
| 577 IPC_STRUCT_TRAITS_MEMBER(header) | |
| 578 IPC_STRUCT_TRAITS_END() | 576 IPC_STRUCT_TRAITS_END() |
| 579 | 577 |
| 580 IPC_STRUCT_TRAITS_BEGIN(content::ContentSecurityPolicyHeader) | 578 IPC_STRUCT_TRAITS_BEGIN(content::ContentSecurityPolicyHeader) |
| 581 IPC_STRUCT_TRAITS_MEMBER(header_value) | 579 IPC_STRUCT_TRAITS_MEMBER(header_value) |
| 582 IPC_STRUCT_TRAITS_MEMBER(type) | 580 IPC_STRUCT_TRAITS_MEMBER(type) |
| 583 IPC_STRUCT_TRAITS_MEMBER(source) | 581 IPC_STRUCT_TRAITS_MEMBER(source) |
| 584 IPC_STRUCT_TRAITS_END() | 582 IPC_STRUCT_TRAITS_END() |
| 585 | 583 |
| 586 IPC_STRUCT_TRAITS_BEGIN(content::CSPViolationParams) | 584 IPC_STRUCT_TRAITS_BEGIN(content::CSPViolationParams) |
| 587 IPC_STRUCT_TRAITS_MEMBER(directive) | 585 IPC_STRUCT_TRAITS_MEMBER(directive) |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 816 // Notifies the frame that its parent has changed the frame's sandbox flags. | 814 // Notifies the frame that its parent has changed the frame's sandbox flags. |
| 817 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateSandboxFlags, blink::WebSandboxFlags) | 815 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateSandboxFlags, blink::WebSandboxFlags) |
| 818 | 816 |
| 819 // Update a proxy's window.name property. Used when the frame's name is | 817 // Update a proxy's window.name property. Used when the frame's name is |
| 820 // changed in another process. | 818 // changed in another process. |
| 821 IPC_MESSAGE_ROUTED2(FrameMsg_DidUpdateName, | 819 IPC_MESSAGE_ROUTED2(FrameMsg_DidUpdateName, |
| 822 std::string /* name */, | 820 std::string /* name */, |
| 823 std::string /* unique_name */) | 821 std::string /* unique_name */) |
| 824 | 822 |
| 825 // Updates replicated ContentSecurityPolicy in a frame proxy. | 823 // Updates replicated ContentSecurityPolicy in a frame proxy. |
| 826 IPC_MESSAGE_ROUTED1(FrameMsg_AddContentSecurityPolicy, | 824 IPC_MESSAGE_ROUTED1(FrameMsg_AddContentSecurityPolicies, |
| 827 content::ContentSecurityPolicyHeader) | 825 std::vector<content::ContentSecurityPolicyHeader>) |
| 828 | 826 |
| 829 // Resets ContentSecurityPolicy in a frame proxy / in RemoteSecurityContext. | 827 // Resets ContentSecurityPolicy in a frame proxy / in RemoteSecurityContext. |
| 830 IPC_MESSAGE_ROUTED0(FrameMsg_ResetContentSecurityPolicy) | 828 IPC_MESSAGE_ROUTED0(FrameMsg_ResetContentSecurityPolicy) |
| 831 | 829 |
| 832 // Update a proxy's replicated enforcement of insecure request policy. | 830 // Update a proxy's replicated enforcement of insecure request policy. |
| 833 // Used when the frame's policy is changed in another process. | 831 // Used when the frame's policy is changed in another process. |
| 834 IPC_MESSAGE_ROUTED1(FrameMsg_EnforceInsecureRequestPolicy, | 832 IPC_MESSAGE_ROUTED1(FrameMsg_EnforceInsecureRequestPolicy, |
| 835 blink::WebInsecureRequestPolicy) | 833 blink::WebInsecureRequestPolicy) |
| 836 | 834 |
| 837 // Update a proxy's replicated origin. Used when the frame is navigated to a | 835 // Update a proxy's replicated origin. Used when the frame is navigated to a |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1102 // a list of an origin whitelist for each feature in the policy. | 1100 // a list of an origin whitelist for each feature in the policy. |
| 1103 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidSetFeaturePolicyHeader, | 1101 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidSetFeaturePolicyHeader, |
| 1104 content::ParsedFeaturePolicyHeader /* parsed_header */) | 1102 content::ParsedFeaturePolicyHeader /* parsed_header */) |
| 1105 | 1103 |
| 1106 // Notifies the browser process about a new Content Security Policy that needs | 1104 // Notifies the browser process about a new Content Security Policy that needs |
| 1107 // to be applies to the frame. This message is sent when a frame commits | 1105 // to be applies to the frame. This message is sent when a frame commits |
| 1108 // navigation to a new location (reporting accumulated policies from HTTP | 1106 // navigation to a new location (reporting accumulated policies from HTTP |
| 1109 // headers and/or policies that might have been inherited from the parent frame) | 1107 // headers and/or policies that might have been inherited from the parent frame) |
| 1110 // or when a new policy has been discovered afterwards (i.e. found in a | 1108 // or when a new policy has been discovered afterwards (i.e. found in a |
| 1111 // dynamically added or a static <meta> element). | 1109 // dynamically added or a static <meta> element). |
| 1112 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidAddContentSecurityPolicy, | 1110 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidAddContentSecurityPolicies, |
| 1113 content::ContentSecurityPolicyHeader, | 1111 std::vector<content::ContentSecurityPolicy> /* policies */) |
| 1114 std::vector<content::ContentSecurityPolicy>) | |
| 1115 | 1112 |
| 1116 // Sent when the frame starts enforcing an insecure request policy. Sending | 1113 // Sent when the frame starts enforcing an insecure request policy. Sending |
| 1117 // this information in DidCommitProvisionalLoad isn't sufficient; this | 1114 // this information in DidCommitProvisionalLoad isn't sufficient; this |
| 1118 // message is needed because, for example, a document can dynamically insert | 1115 // message is needed because, for example, a document can dynamically insert |
| 1119 // a <meta> tag that causes strict mixed content checking to be enforced. | 1116 // a <meta> tag that causes strict mixed content checking to be enforced. |
| 1120 IPC_MESSAGE_ROUTED1(FrameHostMsg_EnforceInsecureRequestPolicy, | 1117 IPC_MESSAGE_ROUTED1(FrameHostMsg_EnforceInsecureRequestPolicy, |
| 1121 blink::WebInsecureRequestPolicy) | 1118 blink::WebInsecureRequestPolicy) |
| 1122 | 1119 |
| 1123 // Sent when the frame is set to a unique origin. TODO(estark): this IPC | 1120 // Sent when the frame is set to a unique origin. TODO(estark): this IPC |
| 1124 // only exists to support dynamic sandboxing via a CSP delivered in a | 1121 // only exists to support dynamic sandboxing via a CSP delivered in a |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1650 int /* nfr_request_id */, | 1647 int /* nfr_request_id */, |
| 1651 float /* distance */) | 1648 float /* distance */) |
| 1652 | 1649 |
| 1653 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder) | 1650 IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder) |
| 1654 #endif | 1651 #endif |
| 1655 | 1652 |
| 1656 // Adding a new message? Stick to the sort order above: first platform | 1653 // Adding a new message? Stick to the sort order above: first platform |
| 1657 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1654 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
| 1658 // platform independent FrameHostMsg, then ifdefs for platform specific | 1655 // platform independent FrameHostMsg, then ifdefs for platform specific |
| 1659 // FrameHostMsg. | 1656 // FrameHostMsg. |
| OLD | NEW |