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

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

Issue 2397893002: Revert the merge of CrossSiteResourceHandler and NavigationResourceThrottle. (Closed)
Patch Set: Add back initialization of started_from_context_menu_. Created 4 years, 2 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
« no previous file with comments | « content/browser/frame_host/navigator_impl.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_frame_host_impl.h
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
index 943b1cc920129c011fed4b6b27b1764749f8b030..8b275095cde371d47a7f685882c021fd138cec43 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -72,6 +72,7 @@ namespace content {
class AssociatedInterfaceProviderImpl;
class CrossProcessFrameConnector;
+class CrossSiteTransferringRequest;
class FrameTree;
class FrameTreeNode;
class NavigationHandleImpl;
@@ -340,6 +341,18 @@ class CONTENT_EXPORT RenderFrameHostImpl
// RenderFrameHost that will issue the transferring request.
std::unique_ptr<NavigationHandleImpl> PassNavigationHandleOwnership();
+ // Called on the pending RenderFrameHost when the network response is ready to
+ // commit. We should ensure that the old RenderFrameHost runs its unload
+ // handler and determine whether a transfer to a different RenderFrameHost is
+ // needed.
+ void OnCrossSiteResponse(const GlobalRequestID& global_request_id,
+ std::unique_ptr<CrossSiteTransferringRequest>
+ cross_site_transferring_request,
+ const std::vector<GURL>& transfer_url_chain,
+ const Referrer& referrer,
+ ui::PageTransition page_transition,
+ bool should_replace_current_entry);
+
// Tells the renderer that this RenderFrame is being swapped out for one in a
// different renderer process. It should run its unload handler and move to
// a blank document. If |proxy| is not null, it should also create a
« no previous file with comments | « content/browser/frame_host/navigator_impl.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698