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

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: Rebase Created 6 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
« no previous file with comments | « content/browser/browsing_instance.cc ('k') | content/browser/frame_host/render_frame_host_manager.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_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 f5ecf04df5064b57d705f6974475316523870ff9..598dbd415f159650f479814b86f0e15640a34440 100644
--- a/content/browser/frame_host/render_frame_host_manager.h
+++ b/content/browser/frame_host/render_frame_host_manager.h
@@ -392,6 +392,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* UpdateStateForNavigate(
const NavigationEntryImpl& entry);
« no previous file with comments | « content/browser/browsing_instance.cc ('k') | content/browser/frame_host/render_frame_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698