Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: content/common/frame_messages.h

Issue 1489253002: Plumb document's strict mixed content checking for RemoteFrames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: alexmos test comments Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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,
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
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 checking.
alexmos 2015/12/15 17:49:17 nit: maybe also mention why just sending it in Did
estark 2015/12/15 21:28:50 Done.
830 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidEnforceStrictMixedContentChecking)
831
819 // Sent when the renderer changed the progress of a load. 832 // Sent when the renderer changed the progress of a load.
820 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress, 833 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress,
821 double /* load_progress */) 834 double /* load_progress */)
822 835
823 // Requests that the given URL be opened in the specified manner. 836 // Requests that the given URL be opened in the specified manner.
824 IPC_MESSAGE_ROUTED1(FrameHostMsg_OpenURL, FrameHostMsg_OpenURL_Params) 837 IPC_MESSAGE_ROUTED1(FrameHostMsg_OpenURL, FrameHostMsg_OpenURL_Params)
825 838
826 // Notifies the browser that a frame finished loading. 839 // Notifies the browser that a frame finished loading.
827 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad, 840 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad,
828 GURL /* validated_url */) 841 GURL /* validated_url */)
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
1263 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 1276 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
1264 FrameHostMsg_ShowPopup_Params) 1277 FrameHostMsg_ShowPopup_Params)
1265 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 1278 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
1266 1279
1267 #endif 1280 #endif
1268 1281
1269 // Adding a new message? Stick to the sort order above: first platform 1282 // Adding a new message? Stick to the sort order above: first platform
1270 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1283 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1271 // platform independent FrameHostMsg, then ifdefs for platform specific 1284 // platform independent FrameHostMsg, then ifdefs for platform specific
1272 // FrameHostMsg. 1285 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698