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

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

Issue 2208933002: Don't load subframe history items if a client redirect occurs during load. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Limit to subframe case. Created 4 years, 4 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/render_frame_host_manager.h
diff --git a/content/browser/frame_host/render_frame_host_manager.h b/content/browser/frame_host/render_frame_host_manager.h
index 663ea40eff755c7b66f7bbba6d613e6cfdfe5a1a..dd08ac2f96e11a9dcd9a1f16c914f201f70cfb81 100644
--- a/content/browser/frame_host/render_frame_host_manager.h
+++ b/content/browser/frame_host/render_frame_host_manager.h
@@ -515,6 +515,9 @@ class CONTENT_EXPORT RenderFrameHostManager
bool InitRenderView(RenderViewHostImpl* render_view_host,
RenderFrameProxyHost* proxy);
+ // Terminates and deletes the pending RenderFrameHost.
+ void CancelPending();
+
private:
friend class NavigatorTestWithBrowserSideNavigation;
friend class RenderFrameHostManagerTest;
@@ -710,10 +713,6 @@ class CONTENT_EXPORT RenderFrameHostManager
void DiscardUnusedFrame(
std::unique_ptr<RenderFrameHostImpl> render_frame_host);
- // Helper method to terminate the pending RenderFrameHost. The frame may be
- // deleted immediately, or it may be kept around in hopes of later reuse.
- void CancelPending();
-
// Clears pending_render_frame_host_, returning it to the caller for disposal.
std::unique_ptr<RenderFrameHostImpl> UnsetPendingRenderFrameHost();

Powered by Google App Engine
This is Rietveld 408576698