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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 // reported. | 284 // reported. |
285 IPC_STRUCT_MEMBER(FrameMsg_UILoadMetricsReportType::Value, report_type) | 285 IPC_STRUCT_MEMBER(FrameMsg_UILoadMetricsReportType::Value, report_type) |
286 | 286 |
287 // Timestamp at which the UI action that triggered the navigation originated. | 287 // Timestamp at which the UI action that triggered the navigation originated. |
288 IPC_STRUCT_MEMBER(base::TimeTicks, ui_timestamp) | 288 IPC_STRUCT_MEMBER(base::TimeTicks, ui_timestamp) |
289 | 289 |
290 // True if the document for the load is enforcing strict mixed content | 290 // True if the document for the load is enforcing strict mixed content |
291 // checking. | 291 // checking. |
292 IPC_STRUCT_MEMBER(bool, should_enforce_strict_mixed_content_checking) | 292 IPC_STRUCT_MEMBER(bool, should_enforce_strict_mixed_content_checking) |
293 | 293 |
| 294 // True if the document for the load is a unique origin that should be |
| 295 // considered potentially trustworthy. |
| 296 IPC_STRUCT_MEMBER(bool, has_potentially_trustworthy_unique_origin) |
| 297 |
294 // True if the navigation originated as an srcdoc attribute. | 298 // True if the navigation originated as an srcdoc attribute. |
295 IPC_STRUCT_MEMBER(bool, is_srcdoc) | 299 IPC_STRUCT_MEMBER(bool, is_srcdoc) |
296 IPC_STRUCT_END() | 300 IPC_STRUCT_END() |
297 | 301 |
298 IPC_STRUCT_BEGIN(FrameMsg_PostMessage_Params) | 302 IPC_STRUCT_BEGIN(FrameMsg_PostMessage_Params) |
299 // Whether the data format is supplied as serialized script value, or as | 303 // Whether the data format is supplied as serialized script value, or as |
300 // a simple string. If it is a raw string, must be converted from string to a | 304 // a simple string. If it is a raw string, must be converted from string to a |
301 // WebSerializedScriptValue in the renderer process. | 305 // WebSerializedScriptValue in the renderer process. |
302 IPC_STRUCT_MEMBER(bool, is_data_raw_string) | 306 IPC_STRUCT_MEMBER(bool, is_data_raw_string) |
303 | 307 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 #endif | 381 #endif |
378 IPC_STRUCT_TRAITS_END() | 382 IPC_STRUCT_TRAITS_END() |
379 | 383 |
380 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) | 384 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) |
381 IPC_STRUCT_TRAITS_MEMBER(origin) | 385 IPC_STRUCT_TRAITS_MEMBER(origin) |
382 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) | 386 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) |
383 IPC_STRUCT_TRAITS_MEMBER(name) | 387 IPC_STRUCT_TRAITS_MEMBER(name) |
384 IPC_STRUCT_TRAITS_MEMBER(unique_name) | 388 IPC_STRUCT_TRAITS_MEMBER(unique_name) |
385 IPC_STRUCT_TRAITS_MEMBER(scope) | 389 IPC_STRUCT_TRAITS_MEMBER(scope) |
386 IPC_STRUCT_TRAITS_MEMBER(should_enforce_strict_mixed_content_checking) | 390 IPC_STRUCT_TRAITS_MEMBER(should_enforce_strict_mixed_content_checking) |
| 391 IPC_STRUCT_TRAITS_MEMBER(has_potentially_trustworthy_unique_origin) |
387 IPC_STRUCT_TRAITS_END() | 392 IPC_STRUCT_TRAITS_END() |
388 | 393 |
389 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_WidgetParams) | 394 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_WidgetParams) |
390 // Gives the routing ID for the RenderWidget that will be attached to the | 395 // Gives the routing ID for the RenderWidget that will be attached to the |
391 // new RenderFrame. If the RenderFrame does not need a RenderWidget, this | 396 // new RenderFrame. If the RenderFrame does not need a RenderWidget, this |
392 // is MSG_ROUTING_NONE and the other parameters are not read. | 397 // is MSG_ROUTING_NONE and the other parameters are not read. |
393 IPC_STRUCT_MEMBER(int, routing_id) | 398 IPC_STRUCT_MEMBER(int, routing_id) |
394 | 399 |
395 // Tells the new RenderWidget whether it is initially hidden. | 400 // Tells the new RenderWidget whether it is initially hidden. |
396 IPC_STRUCT_MEMBER(bool, hidden) | 401 IPC_STRUCT_MEMBER(bool, hidden) |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 std::string /* unique_name */) | 767 std::string /* unique_name */) |
763 | 768 |
764 // Update a proxy's replicated enforcement of strict mixed content | 769 // Update a proxy's replicated enforcement of strict mixed content |
765 // checking. Used when the frame's mixed content setting is changed in | 770 // checking. Used when the frame's mixed content setting is changed in |
766 // another process. | 771 // another process. |
767 IPC_MESSAGE_ROUTED1(FrameMsg_EnforceStrictMixedContentChecking, | 772 IPC_MESSAGE_ROUTED1(FrameMsg_EnforceStrictMixedContentChecking, |
768 bool /* should enforce */) | 773 bool /* should enforce */) |
769 | 774 |
770 // Update a proxy's replicated origin. Used when the frame is navigated to a | 775 // Update a proxy's replicated origin. Used when the frame is navigated to a |
771 // new origin. | 776 // new origin. |
772 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateOrigin, url::Origin /* origin */) | 777 IPC_MESSAGE_ROUTED2(FrameMsg_DidUpdateOrigin, |
| 778 url::Origin /* origin */, |
| 779 bool /* is potentially trustworthy unique origin */) |
773 | 780 |
774 // Notifies this frame or proxy that it is now focused. This is used to | 781 // Notifies this frame or proxy that it is now focused. This is used to |
775 // support cross-process focused frame changes. | 782 // support cross-process focused frame changes. |
776 IPC_MESSAGE_ROUTED0(FrameMsg_SetFocusedFrame) | 783 IPC_MESSAGE_ROUTED0(FrameMsg_SetFocusedFrame) |
777 | 784 |
778 // Send to the RenderFrame to set text tracks state and style settings. | 785 // Send to the RenderFrame to set text tracks state and style settings. |
779 // Sent for top-level frames. | 786 // Sent for top-level frames. |
780 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings, | 787 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings, |
781 FrameMsg_TextTrackSettings_Params /* params */) | 788 FrameMsg_TextTrackSettings_Params /* params */) |
782 | 789 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
945 std::string /* name */, | 952 std::string /* name */, |
946 std::string /* unique_name */) | 953 std::string /* unique_name */) |
947 | 954 |
948 // Sent when the frame starts enforcing strict mixed content | 955 // Sent when the frame starts enforcing strict mixed content |
949 // checking. Sending this information in DidCommitProvisionalLoad isn't | 956 // checking. Sending this information in DidCommitProvisionalLoad isn't |
950 // sufficient; this message is needed because, for example, a document | 957 // sufficient; this message is needed because, for example, a document |
951 // can dynamically insert a <meta> tag that causes strict mixed content | 958 // can dynamically insert a <meta> tag that causes strict mixed content |
952 // checking to be enforced. | 959 // checking to be enforced. |
953 IPC_MESSAGE_ROUTED0(FrameHostMsg_EnforceStrictMixedContentChecking) | 960 IPC_MESSAGE_ROUTED0(FrameHostMsg_EnforceStrictMixedContentChecking) |
954 | 961 |
| 962 // Sent when the frame is set to a unique origin. TODO(estark): this IPC |
| 963 // only exists to support dynamic sandboxing via a CSP delivered in a |
| 964 // <meta> tag. This is not supposed to be allowed per the CSP spec and |
| 965 // should be ripped out. https://crbug.com/594645 |
| 966 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateToUniqueOrigin, |
| 967 bool /* is potentially trustworthy unique origin */) |
| 968 |
955 // Sent when the renderer changed the progress of a load. | 969 // Sent when the renderer changed the progress of a load. |
956 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress, | 970 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress, |
957 double /* load_progress */) | 971 double /* load_progress */) |
958 | 972 |
959 // Requests that the given URL be opened in the specified manner. | 973 // Requests that the given URL be opened in the specified manner. |
960 IPC_MESSAGE_ROUTED1(FrameHostMsg_OpenURL, FrameHostMsg_OpenURL_Params) | 974 IPC_MESSAGE_ROUTED1(FrameHostMsg_OpenURL, FrameHostMsg_OpenURL_Params) |
961 | 975 |
962 // Notifies the browser that a frame finished loading. | 976 // Notifies the browser that a frame finished loading. |
963 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad, | 977 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad, |
964 GURL /* validated_url */) | 978 GURL /* validated_url */) |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1439 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, | 1453 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, |
1440 int /* version */, | 1454 int /* version */, |
1441 std::vector<gfx::RectF> /* rects */, | 1455 std::vector<gfx::RectF> /* rects */, |
1442 gfx::RectF /* active_rect */) | 1456 gfx::RectF /* active_rect */) |
1443 #endif | 1457 #endif |
1444 | 1458 |
1445 // Adding a new message? Stick to the sort order above: first platform | 1459 // Adding a new message? Stick to the sort order above: first platform |
1446 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1460 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1447 // platform independent FrameHostMsg, then ifdefs for platform specific | 1461 // platform independent FrameHostMsg, then ifdefs for platform specific |
1448 // FrameHostMsg. | 1462 // FrameHostMsg. |
OLD | NEW |