Index: content/common/frame_messages.h |
diff --git a/content/common/frame_messages.h b/content/common/frame_messages.h |
index ec76ea6950d62b451a19389e8e6763731af5b312..f54df2eedd1e14e8794d69ba51023e743501cbbf 100644 |
--- a/content/common/frame_messages.h |
+++ b/content/common/frame_messages.h |
@@ -288,6 +288,10 @@ IPC_STRUCT_BEGIN_WITH_PARENT(FrameHostMsg_DidCommitProvisionalLoad_Params, |
// checking. |
IPC_STRUCT_MEMBER(bool, should_enforce_strict_mixed_content_checking) |
+ // True if the document for the load is a unique origin that should be |
+ // considered potentially trustworthy. |
+ IPC_STRUCT_MEMBER(bool, has_potentially_trustworthy_unique_origin) |
+ |
// True if the navigation originated as an srcdoc attribute. |
IPC_STRUCT_MEMBER(bool, is_srcdoc) |
IPC_STRUCT_END() |
@@ -381,6 +385,7 @@ IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) |
IPC_STRUCT_TRAITS_MEMBER(unique_name) |
IPC_STRUCT_TRAITS_MEMBER(scope) |
IPC_STRUCT_TRAITS_MEMBER(should_enforce_strict_mixed_content_checking) |
+ IPC_STRUCT_TRAITS_MEMBER(has_potentially_trustworthy_unique_origin) |
IPC_STRUCT_TRAITS_END() |
IPC_STRUCT_BEGIN(FrameMsg_NewFrame_WidgetParams) |
@@ -766,7 +771,9 @@ IPC_MESSAGE_ROUTED1(FrameMsg_EnforceStrictMixedContentChecking, |
// Update a proxy's replicated origin. Used when the frame is navigated to a |
// new origin. |
-IPC_MESSAGE_ROUTED1(FrameMsg_DidUpdateOrigin, url::Origin /* origin */) |
+IPC_MESSAGE_ROUTED2(FrameMsg_DidUpdateOrigin, |
+ url::Origin /* origin */, |
+ bool /* is potentially trustworthy unique origin */) |
// Notifies this frame or proxy that it is now focused. This is used to |
// support cross-process focused frame changes. |
@@ -949,6 +956,10 @@ IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeName, |
// checking to be enforced. |
IPC_MESSAGE_ROUTED0(FrameHostMsg_EnforceStrictMixedContentChecking) |
+// 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.
|
+IPC_MESSAGE_ROUTED1(FrameHostMsg_UpdateToUniqueOrigin, |
+ bool /* is potentially trustworthy unique origin */) |
+ |
// Sent when the renderer changed the progress of a load. |
IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress, |
double /* load_progress */) |