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

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

Issue 1723753002: Make Document::isSecureContext() work for OOPIFs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: alexmos comments Created 4 years, 9 months 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 // reported. 281 // reported.
282 IPC_STRUCT_MEMBER(FrameMsg_UILoadMetricsReportType::Value, report_type) 282 IPC_STRUCT_MEMBER(FrameMsg_UILoadMetricsReportType::Value, report_type)
283 283
284 // Timestamp at which the UI action that triggered the navigation originated. 284 // Timestamp at which the UI action that triggered the navigation originated.
285 IPC_STRUCT_MEMBER(base::TimeTicks, ui_timestamp) 285 IPC_STRUCT_MEMBER(base::TimeTicks, ui_timestamp)
286 286
287 // True if the document for the load is enforcing strict mixed content 287 // True if the document for the load is enforcing strict mixed content
288 // checking. 288 // checking.
289 IPC_STRUCT_MEMBER(bool, should_enforce_strict_mixed_content_checking) 289 IPC_STRUCT_MEMBER(bool, should_enforce_strict_mixed_content_checking)
290 290
291 // True if the document for the load is a unique origin that should be
292 // considered potentially trustworthy.
293 IPC_STRUCT_MEMBER(bool, has_potentially_trustworthy_unique_origin)
294
291 // True if the navigation originated as an srcdoc attribute. 295 // True if the navigation originated as an srcdoc attribute.
292 IPC_STRUCT_MEMBER(bool, is_srcdoc) 296 IPC_STRUCT_MEMBER(bool, is_srcdoc)
293 IPC_STRUCT_END() 297 IPC_STRUCT_END()
294 298
295 IPC_STRUCT_BEGIN(FrameMsg_PostMessage_Params) 299 IPC_STRUCT_BEGIN(FrameMsg_PostMessage_Params)
296 // Whether the data format is supplied as serialized script value, or as 300 // Whether the data format is supplied as serialized script value, or as
297 // a simple string. If it is a raw string, must be converted from string to a 301 // a simple string. If it is a raw string, must be converted from string to a
298 // WebSerializedScriptValue in the renderer process. 302 // WebSerializedScriptValue in the renderer process.
299 IPC_STRUCT_MEMBER(bool, is_data_raw_string) 303 IPC_STRUCT_MEMBER(bool, is_data_raw_string)
300 304
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 #endif 378 #endif
375 IPC_STRUCT_TRAITS_END() 379 IPC_STRUCT_TRAITS_END()
376 380
377 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) 381 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState)
378 IPC_STRUCT_TRAITS_MEMBER(origin) 382 IPC_STRUCT_TRAITS_MEMBER(origin)
379 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) 383 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags)
380 IPC_STRUCT_TRAITS_MEMBER(name) 384 IPC_STRUCT_TRAITS_MEMBER(name)
381 IPC_STRUCT_TRAITS_MEMBER(unique_name) 385 IPC_STRUCT_TRAITS_MEMBER(unique_name)
382 IPC_STRUCT_TRAITS_MEMBER(scope) 386 IPC_STRUCT_TRAITS_MEMBER(scope)
383 IPC_STRUCT_TRAITS_MEMBER(should_enforce_strict_mixed_content_checking) 387 IPC_STRUCT_TRAITS_MEMBER(should_enforce_strict_mixed_content_checking)
388 IPC_STRUCT_TRAITS_MEMBER(has_potentially_trustworthy_unique_origin)
384 IPC_STRUCT_TRAITS_END() 389 IPC_STRUCT_TRAITS_END()
385 390
386 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_WidgetParams) 391 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_WidgetParams)
387 // Gives the routing ID for the RenderWidget that will be attached to the 392 // Gives the routing ID for the RenderWidget that will be attached to the
388 // new RenderFrame. If the RenderFrame does not need a RenderWidget, this 393 // new RenderFrame. If the RenderFrame does not need a RenderWidget, this
389 // is MSG_ROUTING_NONE and the other parameters are not read. 394 // is MSG_ROUTING_NONE and the other parameters are not read.
390 IPC_STRUCT_MEMBER(int, routing_id) 395 IPC_STRUCT_MEMBER(int, routing_id)
391 396
392 // Tells the new RenderWidget whether it is initially hidden. 397 // Tells the new RenderWidget whether it is initially hidden.
393 IPC_STRUCT_MEMBER(bool, hidden) 398 IPC_STRUCT_MEMBER(bool, hidden)
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 std::string /* unique_name */) 764 std::string /* unique_name */)
760 765
761 // Update a proxy's replicated enforcement of strict mixed content 766 // Update a proxy's replicated enforcement of strict mixed content
762 // checking. Used when the frame's mixed content setting is changed in 767 // checking. Used when the frame's mixed content setting is changed in
763 // another process. 768 // another process.
764 IPC_MESSAGE_ROUTED1(FrameMsg_EnforceStrictMixedContentChecking, 769 IPC_MESSAGE_ROUTED1(FrameMsg_EnforceStrictMixedContentChecking,
765 bool /* should enforce */) 770 bool /* should enforce */)
766 771
767 // Update a proxy's replicated origin. Used when the frame is navigated to a 772 // Update a proxy's replicated origin. Used when the frame is navigated to a
768 // new origin. 773 // new origin.
769 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateOrigin, url::Origin /* origin */) 774 IPC_MESSAGE_ROUTED2(FrameMsg_DidUpdateOrigin,
775 url::Origin /* origin */,
776 bool /* is potentially trustworthy unique origin */)
770 777
771 // Notifies this frame or proxy that it is now focused. This is used to 778 // Notifies this frame or proxy that it is now focused. This is used to
772 // support cross-process focused frame changes. 779 // support cross-process focused frame changes.
773 IPC_MESSAGE_ROUTED0(FrameMsg_SetFocusedFrame) 780 IPC_MESSAGE_ROUTED0(FrameMsg_SetFocusedFrame)
774 781
775 // Send to the RenderFrame to set text tracks state and style settings. 782 // Send to the RenderFrame to set text tracks state and style settings.
776 // Sent for top-level frames. 783 // Sent for top-level frames.
777 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings, 784 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings,
778 FrameMsg_TextTrackSettings_Params /* params */) 785 FrameMsg_TextTrackSettings_Params /* params */)
779 786
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 std::string /* name */, 949 std::string /* name */,
943 std::string /* unique_name */) 950 std::string /* unique_name */)
944 951
945 // Sent when the frame starts enforcing strict mixed content 952 // Sent when the frame starts enforcing strict mixed content
946 // checking. Sending this information in DidCommitProvisionalLoad isn't 953 // checking. Sending this information in DidCommitProvisionalLoad isn't
947 // sufficient; this message is needed because, for example, a document 954 // sufficient; this message is needed because, for example, a document
948 // can dynamically insert a <meta> tag that causes strict mixed content 955 // can dynamically insert a <meta> tag that causes strict mixed content
949 // checking to be enforced. 956 // checking to be enforced.
950 IPC_MESSAGE_ROUTED0(FrameHostMsg_EnforceStrictMixedContentChecking) 957 IPC_MESSAGE_ROUTED0(FrameHostMsg_EnforceStrictMixedContentChecking)
951 958
959 // Sent when the frame is set to a unique origin.
alexmos 2016/03/15 06:44:34 nit: consider expanding this comment a bit to expl
estark 2016/03/16 20:02:52 Done.
960 IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateToUniqueOrigin,
961 bool /* is potentially trustworthy unique origin */)
962
952 // Sent when the renderer changed the progress of a load. 963 // Sent when the renderer changed the progress of a load.
953 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress, 964 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress,
954 double /* load_progress */) 965 double /* load_progress */)
955 966
956 // Requests that the given URL be opened in the specified manner. 967 // Requests that the given URL be opened in the specified manner.
957 IPC_MESSAGE_ROUTED1(FrameHostMsg_OpenURL, FrameHostMsg_OpenURL_Params) 968 IPC_MESSAGE_ROUTED1(FrameHostMsg_OpenURL, FrameHostMsg_OpenURL_Params)
958 969
959 // Notifies the browser that a frame finished loading. 970 // Notifies the browser that a frame finished loading.
960 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad, 971 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad,
961 GURL /* validated_url */) 972 GURL /* validated_url */)
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1437 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, 1448 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply,
1438 int /* version */, 1449 int /* version */,
1439 std::vector<gfx::RectF> /* rects */, 1450 std::vector<gfx::RectF> /* rects */,
1440 gfx::RectF /* active_rect */) 1451 gfx::RectF /* active_rect */)
1441 #endif 1452 #endif
1442 1453
1443 // Adding a new message? Stick to the sort order above: first platform 1454 // Adding a new message? Stick to the sort order above: first platform
1444 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1455 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1445 // platform independent FrameHostMsg, then ifdefs for platform specific 1456 // platform independent FrameHostMsg, then ifdefs for platform specific
1446 // FrameHostMsg. 1457 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698