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

Unified Diff: content/browser/frame_host/navigator_impl.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_impl.h
diff --git a/content/browser/frame_host/navigator_impl.h b/content/browser/frame_host/navigator_impl.h
index d760f7ce9da3df1cc80b81290fc3feb792d5fff5..7361480ad319f9826d78666f7cb81eba72ff161a 100644
--- a/content/browser/frame_host/navigator_impl.h
+++ b/content/browser/frame_host/navigator_impl.h
@@ -24,6 +24,7 @@ namespace content {
class NavigationControllerImpl;
class NavigatorDelegate;
class NavigatorTest;
+class ResourceRequestBody;
struct LoadCommittedDetails;
// This class is an implementation of Navigator, responsible for managing
@@ -69,14 +70,17 @@ class CONTENT_EXPORT NavigatorImpl : public Navigator {
WindowOpenDisposition disposition,
bool should_replace_current_entry,
bool user_gesture) override;
- void RequestTransferURL(RenderFrameHostImpl* render_frame_host,
- const GURL& url,
- SiteInstance* source_site_instance,
- const std::vector<GURL>& redirect_chain,
- const Referrer& referrer,
- ui::PageTransition page_transition,
- const GlobalRequestID& transferred_global_request_id,
- bool should_replace_current_entry) override;
+ void RequestTransferURL(
+ RenderFrameHostImpl* render_frame_host,
+ const GURL& url,
+ SiteInstance* source_site_instance,
+ const std::vector<GURL>& redirect_chain,
+ const Referrer& referrer,
+ ui::PageTransition page_transition,
+ const GlobalRequestID& transferred_global_request_id,
+ bool should_replace_current_entry,
+ const std::string& method,
+ scoped_refptr<ResourceRequestBody> post_body) override;
void OnBeforeUnloadACK(FrameTreeNode* frame_tree_node, bool proceed) override;
void OnBeginNavigation(FrameTreeNode* frame_tree_node,
const CommonNavigationParams& common_params,
@@ -106,7 +110,8 @@ class CONTENT_EXPORT NavigatorImpl : public Navigator {
const NavigationEntryImpl& entry,
NavigationController::ReloadType reload_type,
bool is_same_document_history_load,
- bool is_pending_entry);
+ bool is_pending_entry,
+ const scoped_refptr<ResourceRequestBody>& post_body);
bool ShouldAssignSiteForURL(const GURL& url);

Powered by Google App Engine
This is Rietveld 408576698