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

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

Issue 117693002: Make RenderFrameHostManager swap RenderFrameHosts, not RenderViewHosts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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_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 8225aa33c9a9936001c03d34c2bd54c6af6cdbc0..e12d07a8e3ea6193f5b8e534737161b679327875 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -76,8 +76,13 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost {
bool is_swapped_out() { return is_swapped_out_; }
- // TODO(nasko): This should be removed and replaced by RenderProcessHost.
- RenderViewHostImpl* render_view_host_; // Not owned.
+ // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a
+ // refcount that calls Shutdown when it reaches zero. This allows each
+ // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring
+ // we have a RenderViewHost for each RenderFrameHost.
+ // TODO(creis): RenderViewHost will eventually go away and be replaced with
+ // some form of page context.
+ RenderViewHostImpl* render_view_host_;
RenderFrameHostDelegate* delegate_;

Powered by Google App Engine
This is Rietveld 408576698