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