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

Unified Diff: content/browser/frame_host/navigation_request.cc

Issue 379143002: PlzNavigate: implement RequestNavigation in the no live renderer case (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed speculative rfh + no pending_navigation_entry dependency Created 6 years, 4 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/browser/frame_host/navigation_request.cc
diff --git a/content/browser/frame_host/navigation_request.cc b/content/browser/frame_host/navigation_request.cc
index fb46ae59b3d9c10ad87d021dd60dd5010efb342f..8a10c2c901ea5b60bdebe8e32bc6812f7ea311f9 100644
--- a/content/browser/frame_host/navigation_request.cc
+++ b/content/browser/frame_host/navigation_request.cc
@@ -24,8 +24,10 @@ void OnBeginNavigation(const NavigationRequestInfo& info,
} // namespace
NavigationRequest::NavigationRequest(const NavigationRequestInfo& info,
+ const NavigationEntryImpl& entry,
int64 frame_node_id)
: info_(info),
+ entry_(entry),
frame_node_id_(frame_node_id) {
}
@@ -43,4 +45,8 @@ void NavigationRequest::BeginNavigation(
base::Bind(&OnBeginNavigation, info_, request_body, frame_node_id_));
}
+void NavigationRequest::UpdateEntryForCommit(const GURL& final_url) {
+ entry_.SetURL(final_url);
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698