| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 // proxies (e.g., window.open that targets a RemoteFrame by name). The | 332 // proxies (e.g., window.open that targets a RemoteFrame by name). The |
| 333 // updated opener will be forwarded to any other RenderFrameProxies and | 333 // updated opener will be forwarded to any other RenderFrameProxies and |
| 334 // RenderFrames for this FrameTreeNode. | 334 // RenderFrames for this FrameTreeNode. |
| 335 void DidChangeOpener(int opener_routing_id, | 335 void DidChangeOpener(int opener_routing_id, |
| 336 SiteInstance* source_site_instance); | 336 SiteInstance* source_site_instance); |
| 337 | 337 |
| 338 // Creates and initializes a RenderFrameHost. If |view_routing_id_ptr| | 338 // Creates and initializes a RenderFrameHost. If |view_routing_id_ptr| |
| 339 // is not nullptr it will be set to the routing id of the view associated with | 339 // is not nullptr it will be set to the routing id of the view associated with |
| 340 // the frame. | 340 // the frame. |
| 341 scoped_ptr<RenderFrameHostImpl> CreateRenderFrame(SiteInstance* instance, | 341 scoped_ptr<RenderFrameHostImpl> CreateRenderFrame(SiteInstance* instance, |
| 342 int flags, | 342 bool hidden, |
| 343 int* view_routing_id_ptr); | 343 int* view_routing_id_ptr); |
| 344 | 344 |
| 345 // Helper method to create and initialize a RenderFrameProxyHost and return | 345 // Helper method to create and initialize a RenderFrameProxyHost and return |
| 346 // its routing id. | 346 // its routing id. |
| 347 int CreateRenderFrameProxy(SiteInstance* instance); | 347 int CreateRenderFrameProxy(SiteInstance* instance); |
| 348 | 348 |
| 349 // Creates proxies for a new child frame at FrameTreeNode |child| in all | 349 // Creates proxies for a new child frame at FrameTreeNode |child| in all |
| 350 // SiteInstances for which the current frame has proxies. This method is | 350 // SiteInstances for which the current frame has proxies. This method is |
| 351 // called on the parent of a new child frame before the child leaves the | 351 // called on the parent of a new child frame before the child leaves the |
| 352 // SiteInstance. | 352 // SiteInstance. |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 // |skip_this_node|. | 636 // |skip_this_node|. |
| 637 void CreateOpenerProxiesForFrameTree(SiteInstance* instance, | 637 void CreateOpenerProxiesForFrameTree(SiteInstance* instance, |
| 638 FrameTreeNode* skip_this_node); | 638 FrameTreeNode* skip_this_node); |
| 639 | 639 |
| 640 // Creates a RenderFrameHost and corresponding RenderViewHost if necessary. | 640 // Creates a RenderFrameHost and corresponding RenderViewHost if necessary. |
| 641 scoped_ptr<RenderFrameHostImpl> CreateRenderFrameHost( | 641 scoped_ptr<RenderFrameHostImpl> CreateRenderFrameHost( |
| 642 SiteInstance* instance, | 642 SiteInstance* instance, |
| 643 int32_t view_routing_id, | 643 int32_t view_routing_id, |
| 644 int32_t frame_routing_id, | 644 int32_t frame_routing_id, |
| 645 int32_t widget_routing_id, | 645 int32_t widget_routing_id, |
| 646 int flags); | 646 bool hidden); |
| 647 | 647 |
| 648 // PlzNavigate | 648 // PlzNavigate |
| 649 // Create and initialize a speculative RenderFrameHost for an ongoing | 649 // Create and initialize a speculative RenderFrameHost for an ongoing |
| 650 // navigation. It might be destroyed and re-created later if the navigation | 650 // navigation. It might be destroyed and re-created later if the navigation |
| 651 // is redirected to a different SiteInstance. | 651 // is redirected to a different SiteInstance. |
| 652 bool CreateSpeculativeRenderFrameHost(SiteInstance* old_instance, | 652 bool CreateSpeculativeRenderFrameHost(SiteInstance* old_instance, |
| 653 SiteInstance* new_instance); | 653 SiteInstance* new_instance); |
| 654 | 654 |
| 655 // Sets up the necessary state for a new RenderViewHost. If |proxy| is not | 655 // Sets up the necessary state for a new RenderViewHost. If |proxy| is not |
| 656 // null, it creates a RenderFrameProxy in the target renderer process which is | 656 // null, it creates a RenderFrameProxy in the target renderer process which is |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 scoped_ptr<RenderFrameHostImpl> speculative_render_frame_host_; | 781 scoped_ptr<RenderFrameHostImpl> speculative_render_frame_host_; |
| 782 | 782 |
| 783 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 783 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
| 784 | 784 |
| 785 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 785 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
| 786 }; | 786 }; |
| 787 | 787 |
| 788 } // namespace content | 788 } // namespace content |
| 789 | 789 |
| 790 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 790 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| OLD | NEW |