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

Unified Diff: content/common/navigation_params.cc

Issue 2099243002: PlzNavigate: properly set the initiator of the navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 1 month 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.cc
diff --git a/content/common/navigation_params.cc b/content/common/navigation_params.cc
index d6d1eb1abaafe537f722ff4ff2a496ea0fdc7030..557f3330a222c56a43afe0d6f7b2ae99a241256b 100644
--- a/content/common/navigation_params.cc
+++ b/content/common/navigation_params.cc
@@ -90,16 +90,20 @@ BeginNavigationParams::BeginNavigationParams(
int load_flags,
bool has_user_gesture,
bool skip_service_worker,
- RequestContextType request_context_type)
+ RequestContextType request_context_type,
+ const base::Optional<url::Origin>& initiator)
: headers(headers),
load_flags(load_flags),
has_user_gesture(has_user_gesture),
skip_service_worker(skip_service_worker),
- request_context_type(request_context_type) {}
+ request_context_type(request_context_type),
+ initiator(initiator) {}
BeginNavigationParams::BeginNavigationParams(
const BeginNavigationParams& other) = default;
+BeginNavigationParams::~BeginNavigationParams() {}
+
StartNavigationParams::StartNavigationParams()
: transferred_request_child_id(-1),
transferred_request_request_id(-1) {

Powered by Google App Engine
This is Rietveld 408576698