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 by X-Frame-Options or CSP | |
850 // frame-ancestors while loading. | |
851 IPC_MESSAGE_ROUTED0(FrameMsg_CancelLoadAfterXFrameOptionsOrCSPDenied) | |
Charlie Reis
2016/02/26 01:13:22
Is there a reason to make this specific to these f
alexmos
2016/02/26 02:38:05
Good question. It's only specific in the sense th
Charlie Reis
2016/02/26 21:10:01
Yeah, let's make it BlockedLoad, with documentatio
| |
852 | |
849 // Request to continue running the sequential focus navigation algorithm in | 853 // Request to continue running the sequential focus navigation algorithm in |
850 // this frame. |source_routing_id| identifies the frame that issued this | 854 // 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 | 855 // request. This message is sent when pressing <tab> or <shift-tab> needs to |
852 // find the next focusable element in a cross-process frame. | 856 // find the next focusable element in a cross-process frame. |
853 IPC_MESSAGE_ROUTED2(FrameMsg_AdvanceFocus, | 857 IPC_MESSAGE_ROUTED2(FrameMsg_AdvanceFocus, |
854 blink::WebFocusType /* type */, | 858 blink::WebFocusType /* type */, |
855 int32_t /* source_routing_id */) | 859 int32_t /* source_routing_id */) |
856 | 860 |
857 // Sent when the user wants to search for a word on the page (find-in-page). | 861 // Sent when the user wants to search for a word on the page (find-in-page). |
858 IPC_MESSAGE_ROUTED3(FrameMsg_Find, | 862 IPC_MESSAGE_ROUTED3(FrameMsg_Find, |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
988 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeSandboxFlags, | 992 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeSandboxFlags, |
989 int32_t /* subframe_routing_id */, | 993 int32_t /* subframe_routing_id */, |
990 blink::WebSandboxFlags /* updated_flags */) | 994 blink::WebSandboxFlags /* updated_flags */) |
991 | 995 |
992 // Notifies the browser that frame owner properties have changed for a subframe | 996 // Notifies the browser that frame owner properties have changed for a subframe |
993 // of this frame. | 997 // of this frame. |
994 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeFrameOwnerProperties, | 998 IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeFrameOwnerProperties, |
995 int32_t /* subframe_routing_id */, | 999 int32_t /* subframe_routing_id */, |
996 blink::WebFrameOwnerProperties /* frame_owner_properties */) | 1000 blink::WebFrameOwnerProperties /* frame_owner_properties */) |
997 | 1001 |
1002 // Notifies the browser process that a subframe was blocked by | |
1003 // X-Frame-Options or CSP frame-ancestors while loading. | |
1004 // | |
1005 // TODO(mkwst, alexmos): This will become unnecessary once X-Frame-Options and | |
1006 // CSP enforcement moves to the browser process (https://crbug.com/555418). | |
1007 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidCancelLoadAfterXFrameOptionsOrCSPDenied) | |
1008 | |
998 // Changes the title for the page in the UI when the page is navigated or the | 1009 // Changes the title for the page in the UI when the page is navigated or the |
999 // title changes. Sent for top-level frames. | 1010 // title changes. Sent for top-level frames. |
1000 IPC_MESSAGE_ROUTED2(FrameHostMsg_UpdateTitle, | 1011 IPC_MESSAGE_ROUTED2(FrameHostMsg_UpdateTitle, |
1001 base::string16 /* title */, | 1012 base::string16 /* title */, |
1002 blink::WebTextDirection /* title direction */) | 1013 blink::WebTextDirection /* title direction */) |
1003 | 1014 |
1004 // Change the encoding name of the page in UI when the page has detected | 1015 // Change the encoding name of the page in UI when the page has detected |
1005 // proper encoding name. Sent for top-level frames. | 1016 // proper encoding name. Sent for top-level frames. |
1006 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateEncoding, | 1017 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateEncoding, |
1007 std::string /* new encoding name */) | 1018 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, | 1449 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, |
1439 int /* version */, | 1450 int /* version */, |
1440 std::vector<gfx::RectF> /* rects */, | 1451 std::vector<gfx::RectF> /* rects */, |
1441 gfx::RectF /* active_rect */) | 1452 gfx::RectF /* active_rect */) |
1442 #endif | 1453 #endif |
1443 | 1454 |
1444 // Adding a new message? Stick to the sort order above: first platform | 1455 // Adding a new message? Stick to the sort order above: first platform |
1445 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1456 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1446 // platform independent FrameHostMsg, then ifdefs for platform specific | 1457 // platform independent FrameHostMsg, then ifdefs for platform specific |
1447 // FrameHostMsg. | 1458 // FrameHostMsg. |
OLD | NEW |