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

Unified Diff: content/common/navigation_params.h

Issue 2099243002: PlzNavigate: properly set the initiator of the navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
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 -----------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698