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

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: Extracted a shared NavigationEntryImpl::ConstructResourceRequestBody. 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 1495871395c6ca345e6c038f1cc3dcd13213d94d..424bb78d46ef59281a26b502d6fcdf8c5010f439 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,16 @@ 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 NavigationHandleImpl* transfer_navigation_handle) override;
void OnBeforeUnloadACK(FrameTreeNode* frame_tree_node, bool proceed) override;
void OnBeginNavigation(FrameTreeNode* frame_tree_node,
const CommonNavigationParams& common_params,
@@ -107,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