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

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

Issue 257083002: Check BrowsingInstance before swapping prerenders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move accounting to RFHM Created 6 years, 8 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 c2ed883edb27da2bcff1a0e2aac4eeb1d687bcb0..997d53c6a91767386d5c326dba501a39beec178b 100644
--- a/content/browser/frame_host/render_frame_host_manager.h
+++ b/content/browser/frame_host/render_frame_host_manager.h
@@ -395,6 +395,11 @@ class CONTENT_EXPORT RenderFrameHostManager : public NotificationObserver {
// Helper method to terminate the pending RenderViewHost.
void CancelPending();
+ // Helper method to set the active RenderFrameHost. Returns the old
+ // RenderFrameHost and updates counts.
+ scoped_ptr<RenderFrameHostImpl> SetRenderFrameHost(
+ scoped_ptr<RenderFrameHostImpl> render_frame_host);
+
RenderFrameHostImpl* UpdateRendererStateForNavigate(
const NavigationEntryImpl& entry);

Powered by Google App Engine
This is Rietveld 408576698