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

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

Issue 1907443006: PlzNavigate: store POST data in the FrameNavigationEntry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/navigator_impl.cc
diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
index 0cf5f6e169da186736ebbb75763bd51fd4ce76f9..c738e41a8349601f1bae5c1d8d07aee7fee8cbf1 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -380,9 +380,9 @@ bool NavigatorImpl::NavigateToEntry(
FrameMsg_Navigate_Type::Value navigation_type = GetNavigationType(
controller_->GetBrowserContext(), entry, reload_type);
dest_render_frame_host->Navigate(
- entry.ConstructCommonNavigationParams(dest_url, dest_referrer,
- navigation_type, lofi_state,
- navigation_start),
+ entry.ConstructCommonNavigationParams(frame_entry, dest_url,
+ dest_referrer, navigation_type,
+ lofi_state, navigation_start),
entry.ConstructStartNavigationParams(),
entry.ConstructRequestNavigationParams(
frame_entry, is_same_document_history_load,
@@ -458,7 +458,8 @@ bool NavigatorImpl::NavigateNewChildFrame(
void NavigatorImpl::DidNavigate(
RenderFrameHostImpl* render_frame_host,
- const FrameHostMsg_DidCommitProvisionalLoad_Params& params) {
+ const FrameHostMsg_DidCommitProvisionalLoad_Params& params,
+ scoped_refptr<ResourceRequestBody> post_data) {
FrameTree* frame_tree = render_frame_host->frame_tree_node()->frame_tree();
bool oopifs_possible = SiteIsolationPolicy::AreCrossProcessFramesPossible();
@@ -556,8 +557,8 @@ void NavigatorImpl::DidNavigate(
delegate_->SetMainFrameMimeType(params.contents_mime_type);
LoadCommittedDetails details;
- bool did_navigate = controller_->RendererDidNavigate(render_frame_host,
- params, &details);
+ bool did_navigate = controller_->RendererDidNavigate(
+ render_frame_host, params, &details, post_data);
// Keep track of each frame's URL in its FrameTreeNode, whether it's for a net
// error or not.

Powered by Google App Engine
This is Rietveld 408576698