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

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: fix WebRemoteFrameImpl assert 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, is_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(is_potentially_trustworthy_unique_origin)
alexmos 2016/03/09 18:45:06 nit: maybe that should be named has_potentialy_tru
estark 2016/03/10 00:53:44 Done.
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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 IPC_MESSAGE_ROUTED2(FrameMsg_DidUpdateName, 762 IPC_MESSAGE_ROUTED2(FrameMsg_DidUpdateName,
758 std::string /* name */, 763 std::string /* name */,
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
772 // Update a proxy's replicated flag for a unique origin that should be
773 // treated as potentially trustworthy. Used when the frame's origin is
774 // set to or unset from a unique, potentially trustworthy origin.
alexmos 2016/03/09 18:45:06 Maybe add another sentence here to explain under w
estark 2016/03/10 00:53:44 Done.
775 IPC_MESSAGE_ROUTED1(
776 FrameMsg_DidSetUniqueOriginPotentiallyTrustworthy,
777 bool /* is the origin unique and potentially trustworthy */);
778
767 // Update a proxy's replicated origin. Used when the frame is navigated to a 779 // Update a proxy's replicated origin. Used when the frame is navigated to a
768 // new origin. 780 // new origin.
769 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateOrigin, url::Origin /* origin */) 781 IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateOrigin, url::Origin /* origin */)
770 782
771 // Notifies this frame or proxy that it is now focused. This is used to 783 // Notifies this frame or proxy that it is now focused. This is used to
772 // support cross-process focused frame changes. 784 // support cross-process focused frame changes.
773 IPC_MESSAGE_ROUTED0(FrameMsg_SetFocusedFrame) 785 IPC_MESSAGE_ROUTED0(FrameMsg_SetFocusedFrame)
774 786
775 // Send to the RenderFrame to set text tracks state and style settings. 787 // Send to the RenderFrame to set text tracks state and style settings.
776 // Sent for top-level frames. 788 // Sent for top-level frames.
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 std::string /* name */, 954 std::string /* name */,
943 std::string /* unique_name */) 955 std::string /* unique_name */)
944 956
945 // Sent when the frame starts enforcing strict mixed content 957 // Sent when the frame starts enforcing strict mixed content
946 // checking. Sending this information in DidCommitProvisionalLoad isn't 958 // checking. Sending this information in DidCommitProvisionalLoad isn't
947 // sufficient; this message is needed because, for example, a document 959 // sufficient; this message is needed because, for example, a document
948 // can dynamically insert a <meta> tag that causes strict mixed content 960 // can dynamically insert a <meta> tag that causes strict mixed content
949 // checking to be enforced. 961 // checking to be enforced.
950 IPC_MESSAGE_ROUTED0(FrameHostMsg_EnforceStrictMixedContentChecking) 962 IPC_MESSAGE_ROUTED0(FrameHostMsg_EnforceStrictMixedContentChecking)
951 963
964 // Sent when the frame is set to a unique origin that should be considered
965 // potentially trustworthy.
966 IPC_MESSAGE_ROUTED0(FrameHostMsg_SetUniqueOriginPotentiallyTrustworthy)
967
952 // Sent when the renderer changed the progress of a load. 968 // Sent when the renderer changed the progress of a load.
953 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress, 969 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress,
954 double /* load_progress */) 970 double /* load_progress */)
955 971
956 // Requests that the given URL be opened in the specified manner. 972 // Requests that the given URL be opened in the specified manner.
957 IPC_MESSAGE_ROUTED1(FrameHostMsg_OpenURL, FrameHostMsg_OpenURL_Params) 973 IPC_MESSAGE_ROUTED1(FrameHostMsg_OpenURL, FrameHostMsg_OpenURL_Params)
958 974
959 // Notifies the browser that a frame finished loading. 975 // Notifies the browser that a frame finished loading.
960 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad, 976 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad,
961 GURL /* validated_url */) 977 GURL /* validated_url */)
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1437 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, 1453 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply,
1438 int /* version */, 1454 int /* version */,
1439 std::vector<gfx::RectF> /* rects */, 1455 std::vector<gfx::RectF> /* rects */,
1440 gfx::RectF /* active_rect */) 1456 gfx::RectF /* active_rect */)
1441 #endif 1457 #endif
1442 1458
1443 // Adding a new message? Stick to the sort order above: first platform 1459 // Adding a new message? Stick to the sort order above: first platform
1444 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1460 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1445 // platform independent FrameHostMsg, then ifdefs for platform specific 1461 // platform independent FrameHostMsg, then ifdefs for platform specific
1446 // FrameHostMsg. 1462 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698