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 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 // Serialize target frame and its resources into MHTML and write it into the | 839 // Serialize target frame and its resources into MHTML and write it into the |
840 // provided destination file handle. Note that when serializing multiple | 840 // provided destination file handle. Note that when serializing multiple |
841 // frames, one needs to serialize the *main* frame first (the main frame | 841 // frames, one needs to serialize the *main* frame first (the main frame |
842 // needs to go first according to RFC2557 + the main frame will trigger | 842 // needs to go first according to RFC2557 + the main frame will trigger |
843 // generation of the MHTML header). | 843 // generation of the MHTML header). |
844 IPC_MESSAGE_ROUTED1(FrameMsg_SerializeAsMHTML, FrameMsg_SerializeAsMHTML_Params) | 844 IPC_MESSAGE_ROUTED1(FrameMsg_SerializeAsMHTML, FrameMsg_SerializeAsMHTML_Params) |
845 | 845 |
846 IPC_MESSAGE_ROUTED1(FrameMsg_SetFrameOwnerProperties, | 846 IPC_MESSAGE_ROUTED1(FrameMsg_SetFrameOwnerProperties, |
847 blink::WebFrameOwnerProperties /* frame_owner_properties */) | 847 blink::WebFrameOwnerProperties /* frame_owner_properties */) |
848 | 848 |
| 849 // Notifies the frame that its load was blocked while loading. This is |
| 850 // currently used by X-Frame-Options or CSP frame-ancestors. The frame uses |
| 851 // this to perform some special processing (setting its origin to unique, |
| 852 // dispatching a load event on the frame's owner) so that one can't tell |
| 853 // whether this load was blocked or not. |
| 854 IPC_MESSAGE_ROUTED0(FrameMsg_BlockedLoad) |
| 855 |
849 // Request to continue running the sequential focus navigation algorithm in | 856 // Request to continue running the sequential focus navigation algorithm in |
850 // this frame. |source_routing_id| identifies the frame that issued this | 857 // this frame. |source_routing_id| identifies the frame that issued this |
851 // request. This message is sent when pressing <tab> or <shift-tab> needs to | 858 // request. This message is sent when pressing <tab> or <shift-tab> needs to |
852 // find the next focusable element in a cross-process frame. | 859 // find the next focusable element in a cross-process frame. |
853 IPC_MESSAGE_ROUTED2(FrameMsg_AdvanceFocus, | 860 IPC_MESSAGE_ROUTED2(FrameMsg_AdvanceFocus, |
854 blink::WebFocusType /* type */, | 861 blink::WebFocusType /* type */, |
855 int32_t /* source_routing_id */) | 862 int32_t /* source_routing_id */) |
856 | 863 |
857 // Sent when the user wants to search for a word on the page (find-in-page). | 864 // Sent when the user wants to search for a word on the page (find-in-page). |
858 IPC_MESSAGE_ROUTED3(FrameMsg_Find, | 865 IPC_MESSAGE_ROUTED3(FrameMsg_Find, |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
988 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeSandboxFlags, | 995 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeSandboxFlags, |
989 int32_t /* subframe_routing_id */, | 996 int32_t /* subframe_routing_id */, |
990 blink::WebSandboxFlags /* updated_flags */) | 997 blink::WebSandboxFlags /* updated_flags */) |
991 | 998 |
992 // Notifies the browser that frame owner properties have changed for a subframe | 999 // Notifies the browser that frame owner properties have changed for a subframe |
993 // of this frame. | 1000 // of this frame. |
994 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeFrameOwnerProperties, | 1001 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeFrameOwnerProperties, |
995 int32_t /* subframe_routing_id */, | 1002 int32_t /* subframe_routing_id */, |
996 blink::WebFrameOwnerProperties /* frame_owner_properties */) | 1003 blink::WebFrameOwnerProperties /* frame_owner_properties */) |
997 | 1004 |
| 1005 // Notifies the browser process that a subframe was blocked by |
| 1006 // X-Frame-Options or CSP frame-ancestors while loading. |
| 1007 // |
| 1008 // TODO(mkwst, alexmos): This will become unnecessary once X-Frame-Options and |
| 1009 // CSP enforcement moves to the browser process (https://crbug.com/555418). |
| 1010 IPC_MESSAGE_ROUTED0(FrameHostMsg_BlockedLoad) |
| 1011 |
998 // Changes the title for the page in the UI when the page is navigated or the | 1012 // Changes the title for the page in the UI when the page is navigated or the |
999 // title changes. Sent for top-level frames. | 1013 // title changes. Sent for top-level frames. |
1000 IPC_MESSAGE_ROUTED2(FrameHostMsg_UpdateTitle, | 1014 IPC_MESSAGE_ROUTED2(FrameHostMsg_UpdateTitle, |
1001 base::string16 /* title */, | 1015 base::string16 /* title */, |
1002 blink::WebTextDirection /* title direction */) | 1016 blink::WebTextDirection /* title direction */) |
1003 | 1017 |
1004 // Change the encoding name of the page in UI when the page has detected | 1018 // Change the encoding name of the page in UI when the page has detected |
1005 // proper encoding name. Sent for top-level frames. | 1019 // proper encoding name. Sent for top-level frames. |
1006 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateEncoding, | 1020 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateEncoding, |
1007 std::string /* new encoding name */) | 1021 std::string /* new encoding name */) |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1438 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, | 1452 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, |
1439 int /* version */, | 1453 int /* version */, |
1440 std::vector<gfx::RectF> /* rects */, | 1454 std::vector<gfx::RectF> /* rects */, |
1441 gfx::RectF /* active_rect */) | 1455 gfx::RectF /* active_rect */) |
1442 #endif | 1456 #endif |
1443 | 1457 |
1444 // Adding a new message? Stick to the sort order above: first platform | 1458 // Adding a new message? Stick to the sort order above: first platform |
1445 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1459 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1446 // platform independent FrameHostMsg, then ifdefs for platform specific | 1460 // platform independent FrameHostMsg, then ifdefs for platform specific |
1447 // FrameHostMsg. | 1461 // FrameHostMsg. |
OLD | NEW |