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 "cc/surfaces/surface_id.h" | 8 #include "cc/surfaces/surface_id.h" |
9 #include "cc/surfaces/surface_sequence.h" | 9 #include "cc/surfaces/surface_sequence.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
241 // Origin of the frame. This will be replicated to any associated | 241 // Origin of the frame. This will be replicated to any associated |
242 // RenderFrameProxies. | 242 // RenderFrameProxies. |
243 IPC_STRUCT_MEMBER(url::Origin, origin) | 243 IPC_STRUCT_MEMBER(url::Origin, origin) |
244 | 244 |
245 // How navigation metrics starting on UI action for this load should be | 245 // How navigation metrics starting on UI action for this load should be |
246 // reported. | 246 // reported. |
247 IPC_STRUCT_MEMBER(FrameMsg_UILoadMetricsReportType::Value, report_type) | 247 IPC_STRUCT_MEMBER(FrameMsg_UILoadMetricsReportType::Value, report_type) |
248 | 248 |
249 // Timestamp at which the UI action that triggered the navigation originated. | 249 // Timestamp at which the UI action that triggered the navigation originated. |
250 IPC_STRUCT_MEMBER(base::TimeTicks, ui_timestamp) | 250 IPC_STRUCT_MEMBER(base::TimeTicks, ui_timestamp) |
251 | |
252 // True if the document for the load is enforcing strict mixed content | |
253 // checking. | |
254 IPC_STRUCT_MEMBER(bool, should_enforce_strict_mixed_content_checking) | |
251 IPC_STRUCT_END() | 255 IPC_STRUCT_END() |
252 | 256 |
253 IPC_STRUCT_BEGIN(FrameMsg_PostMessage_Params) | 257 IPC_STRUCT_BEGIN(FrameMsg_PostMessage_Params) |
254 // Whether the data format is supplied as serialized script value, or as | 258 // Whether the data format is supplied as serialized script value, or as |
255 // a simple string. If it is a raw string, must be converted from string to a | 259 // a simple string. If it is a raw string, must be converted from string to a |
256 // WebSerializedScriptValue in the renderer process. | 260 // WebSerializedScriptValue in the renderer process. |
257 IPC_STRUCT_MEMBER(bool, is_data_raw_string) | 261 IPC_STRUCT_MEMBER(bool, is_data_raw_string) |
258 | 262 |
259 // The serialized script value. | 263 // The serialized script value. |
260 IPC_STRUCT_MEMBER(base::string16, data) | 264 IPC_STRUCT_MEMBER(base::string16, data) |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
652 // Dispatch a load event in the iframe element containing this frame. | 656 // Dispatch a load event in the iframe element containing this frame. |
653 IPC_MESSAGE_ROUTED0(FrameMsg_DispatchLoad) | 657 IPC_MESSAGE_ROUTED0(FrameMsg_DispatchLoad) |
654 | 658 |
655 // Notifies the frame that its parent has changed the frame's sandbox flags. | 659 // Notifies the frame that its parent has changed the frame's sandbox flags. |
656 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateSandboxFlags, blink::WebSandboxFlags) | 660 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateSandboxFlags, blink::WebSandboxFlags) |
657 | 661 |
658 // Update a proxy's window.name property. Used when the frame's name is | 662 // Update a proxy's window.name property. Used when the frame's name is |
659 // changed in another process. | 663 // changed in another process. |
660 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateName, std::string /* name */) | 664 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateName, std::string /* name */) |
661 | 665 |
666 // Update a proxy's replicated enforcement of strict mixed content | |
667 // checking. Used when the frame's mixed content setting is changed in | |
668 // another process. | |
669 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateShouldEnforceStrictMixedContentChecking, | |
nasko
2015/12/17 17:16:33
nit: I'd drop the "DidUpdateShould" part of the na
estark
2015/12/17 22:19:11
Done.
| |
670 bool /* should enforce */) | |
671 | |
662 // Update a proxy's replicated origin. Used when the frame is navigated to a | 672 // Update a proxy's replicated origin. Used when the frame is navigated to a |
663 // new origin. | 673 // new origin. |
664 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateOrigin, url::Origin /* origin */) | 674 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateOrigin, url::Origin /* origin */) |
665 | 675 |
666 // Notifies this frame or proxy that it is now focused. This is used to | 676 // Notifies this frame or proxy that it is now focused. This is used to |
667 // support cross-process focused frame changes. | 677 // support cross-process focused frame changes. |
668 IPC_MESSAGE_ROUTED0(FrameMsg_SetFocusedFrame) | 678 IPC_MESSAGE_ROUTED0(FrameMsg_SetFocusedFrame) |
669 | 679 |
670 // Send to the RenderFrame to set text tracks state and style settings. | 680 // Send to the RenderFrame to set text tracks state and style settings. |
671 // Sent for top-level frames. | 681 // Sent for top-level frames. |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
809 | 819 |
810 // Sent when the renderer is done loading a page. | 820 // Sent when the renderer is done loading a page. |
811 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidStopLoading) | 821 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidStopLoading) |
812 | 822 |
813 // Notifies the browser that this frame has new session history information. | 823 // Notifies the browser that this frame has new session history information. |
814 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateState, content::PageState /* state */) | 824 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateState, content::PageState /* state */) |
815 | 825 |
816 // Sent when the frame changes its window.name. | 826 // Sent when the frame changes its window.name. |
817 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeName, std::string /* name */) | 827 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeName, std::string /* name */) |
818 | 828 |
829 // Sent when the frame starts enforcing strict mixed content | |
830 // checking. Sending this information in DidCommitProvisionalLoad isn't | |
831 // sufficient; this message is needed because, for example, a document | |
832 // can dynamically insert a <meta> tag that causes strict mixed content | |
833 // checking to be enforced. | |
834 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidEnforceStrictMixedContentChecking) | |
nasko
2015/12/17 17:16:33
I find it equally readable, if not more if we drop
estark
2015/12/17 22:19:11
Done.
| |
835 | |
819 // Sent when the renderer changed the progress of a load. | 836 // Sent when the renderer changed the progress of a load. |
820 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress, | 837 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress, |
821 double /* load_progress */) | 838 double /* load_progress */) |
822 | 839 |
823 // Requests that the given URL be opened in the specified manner. | 840 // Requests that the given URL be opened in the specified manner. |
824 IPC_MESSAGE_ROUTED1(FrameHostMsg_OpenURL, FrameHostMsg_OpenURL_Params) | 841 IPC_MESSAGE_ROUTED1(FrameHostMsg_OpenURL, FrameHostMsg_OpenURL_Params) |
825 | 842 |
826 // Notifies the browser that a frame finished loading. | 843 // Notifies the browser that a frame finished loading. |
827 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad, | 844 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad, |
828 GURL /* validated_url */) | 845 GURL /* validated_url */) |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1263 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 1280 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
1264 FrameHostMsg_ShowPopup_Params) | 1281 FrameHostMsg_ShowPopup_Params) |
1265 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 1282 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
1266 | 1283 |
1267 #endif | 1284 #endif |
1268 | 1285 |
1269 // Adding a new message? Stick to the sort order above: first platform | 1286 // Adding a new message? Stick to the sort order above: first platform |
1270 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1287 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1271 // platform independent FrameHostMsg, then ifdefs for platform specific | 1288 // platform independent FrameHostMsg, then ifdefs for platform specific |
1272 // FrameHostMsg. | 1289 // FrameHostMsg. |
OLD | NEW |