| 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 // How navigation metrics starting on UI action for this load should be | 282 // How navigation metrics starting on UI action for this load should be |
| 283 // reported. | 283 // reported. |
| 284 IPC_STRUCT_MEMBER(FrameMsg_UILoadMetricsReportType::Value, report_type) | 284 IPC_STRUCT_MEMBER(FrameMsg_UILoadMetricsReportType::Value, report_type) |
| 285 | 285 |
| 286 // Timestamp at which the UI action that triggered the navigation originated. | 286 // Timestamp at which the UI action that triggered the navigation originated. |
| 287 IPC_STRUCT_MEMBER(base::TimeTicks, ui_timestamp) | 287 IPC_STRUCT_MEMBER(base::TimeTicks, ui_timestamp) |
| 288 | 288 |
| 289 // The insecure request policy the document for the load is enforcing. | 289 // The insecure request policy the document for the load is enforcing. |
| 290 IPC_STRUCT_MEMBER(blink::WebInsecureRequestPolicy, insecure_request_policy) | 290 IPC_STRUCT_MEMBER(blink::WebInsecureRequestPolicy, insecure_request_policy) |
| 291 | 291 |
| 292 // The upgrade insecure navigations set the document for the load is |
| 293 // enforcing. |
| 294 IPC_STRUCT_MEMBER(std::vector<uint32_t>, insecure_navigations_set) |
| 295 |
| 292 // True if the document for the load is a unique origin that should be | 296 // True if the document for the load is a unique origin that should be |
| 293 // considered potentially trustworthy. | 297 // considered potentially trustworthy. |
| 294 IPC_STRUCT_MEMBER(bool, has_potentially_trustworthy_unique_origin) | 298 IPC_STRUCT_MEMBER(bool, has_potentially_trustworthy_unique_origin) |
| 295 | 299 |
| 296 // See WebSearchableFormData for a description of these. | 300 // See WebSearchableFormData for a description of these. |
| 297 // Not used by PlzNavigate: in that case these fields are sent to the browser | 301 // Not used by PlzNavigate: in that case these fields are sent to the browser |
| 298 // in BeginNavigationParams. | 302 // in BeginNavigationParams. |
| 299 IPC_STRUCT_MEMBER(GURL, searchable_form_url) | 303 IPC_STRUCT_MEMBER(GURL, searchable_form_url) |
| 300 IPC_STRUCT_MEMBER(std::string, searchable_form_encoding) | 304 IPC_STRUCT_MEMBER(std::string, searchable_form_encoding) |
| 301 IPC_STRUCT_END() | 305 IPC_STRUCT_END() |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 | 402 |
| 399 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) | 403 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) |
| 400 IPC_STRUCT_TRAITS_MEMBER(origin) | 404 IPC_STRUCT_TRAITS_MEMBER(origin) |
| 401 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) | 405 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) |
| 402 IPC_STRUCT_TRAITS_MEMBER(name) | 406 IPC_STRUCT_TRAITS_MEMBER(name) |
| 403 IPC_STRUCT_TRAITS_MEMBER(unique_name) | 407 IPC_STRUCT_TRAITS_MEMBER(unique_name) |
| 404 IPC_STRUCT_TRAITS_MEMBER(feature_policy_header) | 408 IPC_STRUCT_TRAITS_MEMBER(feature_policy_header) |
| 405 IPC_STRUCT_TRAITS_MEMBER(accumulated_csp_headers) | 409 IPC_STRUCT_TRAITS_MEMBER(accumulated_csp_headers) |
| 406 IPC_STRUCT_TRAITS_MEMBER(scope) | 410 IPC_STRUCT_TRAITS_MEMBER(scope) |
| 407 IPC_STRUCT_TRAITS_MEMBER(insecure_request_policy) | 411 IPC_STRUCT_TRAITS_MEMBER(insecure_request_policy) |
| 412 IPC_STRUCT_TRAITS_MEMBER(insecure_navigations_set) |
| 408 IPC_STRUCT_TRAITS_MEMBER(has_potentially_trustworthy_unique_origin) | 413 IPC_STRUCT_TRAITS_MEMBER(has_potentially_trustworthy_unique_origin) |
| 409 IPC_STRUCT_TRAITS_END() | 414 IPC_STRUCT_TRAITS_END() |
| 410 | 415 |
| 411 // Parameters included with an OpenURL request. | 416 // Parameters included with an OpenURL request. |
| 412 // |is_history_navigation_in_new_child| is true in the case that the browser | 417 // |is_history_navigation_in_new_child| is true in the case that the browser |
| 413 // process should look for an existing history item for the frame. | 418 // process should look for an existing history item for the frame. |
| 414 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) | 419 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) |
| 415 IPC_STRUCT_MEMBER(GURL, url) | 420 IPC_STRUCT_MEMBER(GURL, url) |
| 416 IPC_STRUCT_MEMBER(bool, uses_post) | 421 IPC_STRUCT_MEMBER(bool, uses_post) |
| 417 IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBodyImpl>, | 422 IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBodyImpl>, |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 734 content::ContentSecurityPolicyHeader) | 739 content::ContentSecurityPolicyHeader) |
| 735 | 740 |
| 736 // Resets ContentSecurityPolicy in a frame proxy / in RemoteSecurityContext. | 741 // Resets ContentSecurityPolicy in a frame proxy / in RemoteSecurityContext. |
| 737 IPC_MESSAGE_ROUTED0(FrameMsg_ResetContentSecurityPolicy) | 742 IPC_MESSAGE_ROUTED0(FrameMsg_ResetContentSecurityPolicy) |
| 738 | 743 |
| 739 // Update a proxy's replicated enforcement of insecure request policy. | 744 // Update a proxy's replicated enforcement of insecure request policy. |
| 740 // Used when the frame's policy is changed in another process. | 745 // Used when the frame's policy is changed in another process. |
| 741 IPC_MESSAGE_ROUTED1(FrameMsg_EnforceInsecureRequestPolicy, | 746 IPC_MESSAGE_ROUTED1(FrameMsg_EnforceInsecureRequestPolicy, |
| 742 blink::WebInsecureRequestPolicy) | 747 blink::WebInsecureRequestPolicy) |
| 743 | 748 |
| 749 // Update a proxy's replicated set for enforcement of insecure navigations. |
| 750 // Used when the frame's set is changed in another process. |
| 751 IPC_MESSAGE_ROUTED1(FrameMsg_EnforceInsecureNavigationsSet, |
| 752 std::vector<uint32_t> /* set */) |
| 753 |
| 744 // Update a proxy's replicated origin. Used when the frame is navigated to a | 754 // Update a proxy's replicated origin. Used when the frame is navigated to a |
| 745 // new origin. | 755 // new origin. |
| 746 IPC_MESSAGE_ROUTED2(FrameMsg_DidUpdateOrigin, | 756 IPC_MESSAGE_ROUTED2(FrameMsg_DidUpdateOrigin, |
| 747 url::Origin /* origin */, | 757 url::Origin /* origin */, |
| 748 bool /* is potentially trustworthy unique origin */) | 758 bool /* is potentially trustworthy unique origin */) |
| 749 | 759 |
| 750 // Notifies this frame or proxy that it is now focused. This is used to | 760 // Notifies this frame or proxy that it is now focused. This is used to |
| 751 // support cross-process focused frame changes. | 761 // support cross-process focused frame changes. |
| 752 IPC_MESSAGE_ROUTED0(FrameMsg_SetFocusedFrame) | 762 IPC_MESSAGE_ROUTED0(FrameMsg_SetFocusedFrame) |
| 753 | 763 |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 998 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidAddContentSecurityPolicy, | 1008 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidAddContentSecurityPolicy, |
| 999 content::ContentSecurityPolicyHeader) | 1009 content::ContentSecurityPolicyHeader) |
| 1000 | 1010 |
| 1001 // Sent when the frame starts enforcing an insecure request policy. Sending | 1011 // Sent when the frame starts enforcing an insecure request policy. Sending |
| 1002 // this information in DidCommitProvisionalLoad isn't sufficient; this | 1012 // this information in DidCommitProvisionalLoad isn't sufficient; this |
| 1003 // message is needed because, for example, a document can dynamically insert | 1013 // message is needed because, for example, a document can dynamically insert |
| 1004 // a <meta> tag that causes strict mixed content checking to be enforced. | 1014 // a <meta> tag that causes strict mixed content checking to be enforced. |
| 1005 IPC_MESSAGE_ROUTED1(FrameHostMsg_EnforceInsecureRequestPolicy, | 1015 IPC_MESSAGE_ROUTED1(FrameHostMsg_EnforceInsecureRequestPolicy, |
| 1006 blink::WebInsecureRequestPolicy) | 1016 blink::WebInsecureRequestPolicy) |
| 1007 | 1017 |
| 1018 // Sent when the frame starts enforcing an upgrade insecure navigations set. |
| 1019 // Sending this information in DidCommitProvisionalLoad isn't sufficient; this |
| 1020 // message is needed because, for example, a document can dynamically insert a |
| 1021 // <meta> tag that causes "Upgrade Insecure Request" to be enabled and the |
| 1022 // upgrade insecure navigations set to be augmented. |
| 1023 IPC_MESSAGE_ROUTED1(FrameHostMsg_EnforceInsecureNavigationsSet, |
| 1024 std::vector<uint32_t>) |
| 1025 |
| 1008 // Sent when the frame is set to a unique origin. TODO(estark): this IPC | 1026 // Sent when the frame is set to a unique origin. TODO(estark): this IPC |
| 1009 // only exists to support dynamic sandboxing via a CSP delivered in a | 1027 // only exists to support dynamic sandboxing via a CSP delivered in a |
| 1010 // <meta> tag. This is not supposed to be allowed per the CSP spec and | 1028 // <meta> tag. This is not supposed to be allowed per the CSP spec and |
| 1011 // should be ripped out. https://crbug.com/594645 | 1029 // should be ripped out. https://crbug.com/594645 |
| 1012 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateToUniqueOrigin, | 1030 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateToUniqueOrigin, |
| 1013 bool /* is potentially trustworthy unique origin */) | 1031 bool /* is potentially trustworthy unique origin */) |
| 1014 | 1032 |
| 1015 // Sent when the renderer changed the progress of a load. | 1033 // Sent when the renderer changed the progress of a load. |
| 1016 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress, | 1034 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress, |
| 1017 double /* load_progress */) | 1035 double /* load_progress */) |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1513 // nearest find result in the sending frame. | 1531 // nearest find result in the sending frame. |
| 1514 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, | 1532 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, |
| 1515 int /* nfr_request_id */, | 1533 int /* nfr_request_id */, |
| 1516 float /* distance */) | 1534 float /* distance */) |
| 1517 #endif | 1535 #endif |
| 1518 | 1536 |
| 1519 // Adding a new message? Stick to the sort order above: first platform | 1537 // Adding a new message? Stick to the sort order above: first platform |
| 1520 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1538 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
| 1521 // platform independent FrameHostMsg, then ifdefs for platform specific | 1539 // platform independent FrameHostMsg, then ifdefs for platform specific |
| 1522 // FrameHostMsg. | 1540 // FrameHostMsg. |
| OLD | NEW |