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

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

Issue 1150793002: Add ref-count on RenderViewHost for each new RenderFrameProxyHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes and missed CHECK. Created 5 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 | « no previous file | content/browser/frame_host/frame_tree.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/frame_tree.h
diff --git a/content/browser/frame_host/frame_tree.h b/content/browser/frame_host/frame_tree.h
index c853dd5b39160e73ac48943d6f9fdf98c6736196..252f3b147840d60b0d1013a4c56f89b2dbe75c4d 100644
--- a/content/browser/frame_host/frame_tree.h
+++ b/content/browser/frame_host/frame_tree.h
@@ -121,10 +121,11 @@ class CONTENT_EXPORT FrameTree {
// RenderFrameHost for each SiteInstance should be created before subframes.
RenderViewHostImpl* GetRenderViewHost(SiteInstance* site_instance);
- // Keeps track of which RenderFrameHosts are using each RenderViewHost. When
- // the number drops to zero, we call Shutdown on the RenderViewHost.
- void RegisterRenderFrameHost(RenderFrameHostImpl* render_frame_host);
- void UnregisterRenderFrameHost(RenderFrameHostImpl* render_frame_host);
+ // Keeps track of which RenderFrameHosts and RenderFrameProxyHosts are using
+ // each RenderViewHost. When the number drops to zero, we call Shutdown on
+ // the RenderViewHost.
+ void AddRenderViewHostRef(RenderViewHostImpl* render_view_host);
+ void ReleaseRenderViewHostRef(RenderViewHostImpl* render_view_host);
// This is only meant to be called by FrameTreeNode. Triggers calling
// the listener installed by SetFrameRemoveListener.
« no previous file with comments | « no previous file | content/browser/frame_host/frame_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698