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

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

Issue 1956383003: Forwarding POST body into renderer after a cross-site transfer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed DCHECK_IMPLIES(method == "POST", url.SchemeIs(http or https)). Created 4 years, 7 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.h
diff --git a/content/browser/frame_host/navigator.h b/content/browser/frame_host/navigator.h
index 9dfe0243e0d1cc8958f7d15b9e076022d121496f..5206bea1cb76f20d1a8e48533efb19d8c688f5be 100644
--- a/content/browser/frame_host/navigator.h
+++ b/content/browser/frame_host/navigator.h
@@ -120,7 +120,8 @@ class CONTENT_EXPORT Navigator : public base::RefCounted<Navigator> {
// The RenderFrameHostImpl wants to transfer the request to a new renderer.
// |redirect_chain| contains any redirect URLs (excluding |url|) that happened
- // before the transfer.
+ // before the transfer. If |method| is "POST", then |post_body| needs to
+ // specify the request body, otherwise |post_body| should be null.
virtual void RequestTransferURL(
RenderFrameHostImpl* render_frame_host,
const GURL& url,
@@ -129,7 +130,9 @@ class CONTENT_EXPORT Navigator : public base::RefCounted<Navigator> {
const Referrer& referrer,
ui::PageTransition page_transition,
const GlobalRequestID& transferred_global_request_id,
- bool should_replace_current_entry) {}
+ bool should_replace_current_entry,
+ const std::string& method,
+ scoped_refptr<ResourceRequestBody> post_body) {}
// PlzNavigate
// Called after receiving a BeforeUnloadACK IPC from the renderer. If

Powered by Google App Engine
This is Rietveld 408576698