| 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 c7fdc4eaf7aeaaf04ba005a14984e1b370b75260..f7443e2830191df939bd79c53d24aa10d2831e08 100644
|
| --- a/content/browser/frame_host/frame_tree.h
|
| +++ b/content/browser/frame_host/frame_tree.h
|
| @@ -71,6 +71,12 @@ class CONTENT_EXPORT FrameTree {
|
| const std::string& frame_name);
|
| void RemoveFrame(FrameTreeNode* child);
|
|
|
| + // Walks the entire frame tree and creates a RenderFrameProxyHost for the
|
| + // given |site_instance| in every node except the |source| one.
|
| + void CreateProxiesForSiteInstance(
|
| + FrameTreeNode* source,
|
| + const scoped_refptr<SiteInstance>& site_instance);
|
| +
|
| // Clears process specific-state after a main frame process swap.
|
| // This destroys most of the frame tree but retains the root node so that
|
| // navigation state may be kept on it between process swaps. Used to
|
| @@ -101,20 +107,19 @@ class CONTENT_EXPORT FrameTree {
|
| void SetFrameRemoveListener(
|
| const base::Callback<void(RenderViewHostImpl*, int)>& on_frame_removed);
|
|
|
| - // Creates a RenderViewHost for a new main frame RenderFrameHost in the given
|
| + // Creates a RenderViewHost for a new RenderFrameHost in the given
|
| // |site_instance|. The RenderViewHost will have its Shutdown method called
|
| // when all of the RenderFrameHosts using it are deleted.
|
| - RenderViewHostImpl* CreateRenderViewHostForMainFrame(
|
| - SiteInstance* site_instance,
|
| - int routing_id,
|
| - int main_frame_routing_id,
|
| - bool swapped_out,
|
| - bool hidden);
|
| -
|
| - // Returns the existing RenderViewHost for a new subframe RenderFrameHost.
|
| + RenderViewHostImpl* CreateRenderViewHost(SiteInstance* site_instance,
|
| + int routing_id,
|
| + int main_frame_routing_id,
|
| + bool swapped_out,
|
| + bool hidden);
|
| +
|
| + // Returns the existing RenderViewHost for a new RenderFrameHost.
|
| // There should always be such a RenderViewHost, because the main frame
|
| // RenderFrameHost for each SiteInstance should be created before subframes.
|
| - RenderViewHostImpl* GetRenderViewHostForSubFrame(SiteInstance* site_instance);
|
| + 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.
|
|
|