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

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

Issue 1907443006: PlzNavigate: store POST data in the FrameNavigationEntry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Not sending POST data when cross-site redirect 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/navigation_request.h
diff --git a/content/browser/frame_host/navigation_request.h b/content/browser/frame_host/navigation_request.h
index 7d3744c3b8c0ab67bee336ab407865ce78fc0911..fd171d18ff22568849b2a38d2ba2fa604d102351 100644
--- a/content/browser/frame_host/navigation_request.h
+++ b/content/browser/frame_host/navigation_request.h
@@ -159,6 +159,10 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate {
void TransferNavigationHandleOwnership(
RenderFrameHostImpl* render_frame_host);
+ // Resets the POST data for the navigation. This is called when encoutering a
+ // cross-site redirect.
+ void ResetPostData();
Charlie Reis 2016/05/11 00:00:23 Lukasz found some useful info on this in the spec
clamy 2016/05/11 08:54:41 Removed the function, since the current behavior c
+
private:
NavigationRequest(FrameTreeNode* frame_tree_node,
const CommonNavigationParams& common_params,
@@ -226,6 +230,9 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate {
bool is_view_source_;
int bindings_;
+ // This is kept to be sent to the renderer on commit.
+ scoped_refptr<ResourceRequestBody> post_data_;
+
// The type of SiteInstance associated with this navigation.
AssociatedSiteInstanceType associated_site_instance_type_;

Powered by Google App Engine
This is Rietveld 408576698