Index: content/common/navigation_params.h |
diff --git a/content/common/navigation_params.h b/content/common/navigation_params.h |
index 1a09b3332381818ea92a7535aaac82bd37d081eb..1ff2d6dcb9372f7423f44619f2ee970812c02e35 100644 |
--- a/content/common/navigation_params.h |
+++ b/content/common/navigation_params.h |
@@ -20,6 +20,7 @@ |
#include "content/public/common/request_context_type.h" |
#include "ui/base/page_transition_types.h" |
#include "url/gurl.h" |
+#include "url/origin.h" |
namespace content { |
@@ -144,7 +145,8 @@ struct CONTENT_EXPORT BeginNavigationParams { |
int load_flags, |
bool has_user_gesture, |
bool skip_service_worker, |
- RequestContextType request_context_type); |
+ RequestContextType request_context_type, |
+ const url::Origin& initiator); |
BeginNavigationParams(const BeginNavigationParams& other); |
// Additional HTTP request headers. |
@@ -161,6 +163,11 @@ struct CONTENT_EXPORT BeginNavigationParams { |
// Indicates the request context type. |
RequestContextType request_context_type; |
+ |
+ // Indicates the initiator of the request. Normally this is the top origin of |
Mike West
2016/06/27 12:10:08
What is a "top origin"?
clamy
2016/06/27 13:36:15
Clarified the comment.
|
+ // the document. In auxilliary navigations, this is the origin of the |
+ // document that triggered the navigation. |
+ url::Origin initiator; |
}; |
// Provided by the browser ----------------------------------------------------- |