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

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: Addressed comments 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..23d62a115e6ddb8cbf6b1f44ffc229976fca9b77 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 origin of the
+ // url of the navigation. In auxilliary navigations, this is the origin of
nasko 2016/06/28 18:32:23 Really? I always thought of initiator as the curre
clamy 2016/06/29 11:23:20 I don't know. I followed the comments of the Reque
+ // the document that triggered the navigation.
+ url::Origin initiator;
};
// Provided by the browser -----------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698