Add ref-count on RenderViewHost for each new RenderFrameProxyHost.
commit8542185bbb9fd0c0e7d0240c64403d2e4cea39f2
authornasko <nasko@chromium.org>
Thu, 21 May 2015 22:53:48 +0000 (21 15:53 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 21 May 2015 22:54:12 +0000 (21 22:54 +0000)
tree0fc9a125f9d5f46531b40745326efb55fd2af496
parenta80a45a87dd90e813fbf44b41eb9fa95e9e71b89
Add ref-count on RenderViewHost for each new RenderFrameProxyHost.

Currently, only RenderFrameHosts are ref-counting the associated RenderViewHost.
Since it is possible to have a RenderViewHost with no associated RenderFrameHost
(for example a cross-process window opener/openee relationship), it should
be taken into account that the associated RenderFrameProxyHost is also
a ref-counting the RenderViewHost.
The goal of this CL is to allow for that, even though it isn't currently
the case. It is a small step towards removing swapped out RenderFrameHosts.

BUG=357747

Review URL: https://codereview.chromium.org/1150793002

Cr-Commit-Position: refs/heads/master@{#331016}
content/browser/frame_host/frame_tree.cc
content/browser/frame_host/frame_tree.h
content/browser/frame_host/render_frame_host_impl.cc
content/browser/frame_host/render_frame_host_manager.cc
content/browser/frame_host/render_frame_host_manager_browsertest.cc
content/browser/frame_host/render_frame_proxy_host.cc
content/browser/frame_host/render_frame_proxy_host.h
content/browser/site_per_process_browsertest.cc