| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 | 181 |
| 182 // All three delegate pointers must be non-NULL and are not owned by this | 182 // All three delegate pointers must be non-NULL and are not owned by this |
| 183 // class. They must outlive this class. The RenderViewHostDelegate and | 183 // class. They must outlive this class. The RenderViewHostDelegate and |
| 184 // RenderWidgetHostDelegate are what will be installed into all | 184 // RenderWidgetHostDelegate are what will be installed into all |
| 185 // RenderViewHosts that are created. | 185 // RenderViewHosts that are created. |
| 186 // | 186 // |
| 187 // You must call Init() before using this class. | 187 // You must call Init() before using this class. |
| 188 RenderFrameHostManager( | 188 RenderFrameHostManager( |
| 189 FrameTreeNode* frame_tree_node, | 189 FrameTreeNode* frame_tree_node, |
| 190 RenderFrameHostDelegate* render_frame_delegate, | 190 RenderFrameHostDelegate* render_frame_delegate, |
| 191 RenderViewHostDelegate* render_view_delegate, | |
| 192 RenderWidgetHostDelegate* render_widget_delegate, | 191 RenderWidgetHostDelegate* render_widget_delegate, |
| 193 Delegate* delegate); | 192 Delegate* delegate); |
| 194 ~RenderFrameHostManager(); | 193 ~RenderFrameHostManager(); |
| 195 | 194 |
| 196 // For arguments, see WebContentsImpl constructor. | 195 // For arguments, see WebContentsImpl constructor. |
| 197 void Init(SiteInstance* site_instance, | 196 void Init(SiteInstance* site_instance, |
| 198 int32_t view_routing_id, | 197 int32_t view_routing_id, |
| 199 int32_t frame_routing_id, | 198 int32_t frame_routing_id, |
| 200 int32_t widget_routing_id); | 199 int32_t widget_routing_id); |
| 201 | 200 |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 | 743 |
| 745 // For use in creating RenderFrameHosts. | 744 // For use in creating RenderFrameHosts. |
| 746 FrameTreeNode* frame_tree_node_; | 745 FrameTreeNode* frame_tree_node_; |
| 747 | 746 |
| 748 // Our delegate, not owned by us. Guaranteed non-NULL. | 747 // Our delegate, not owned by us. Guaranteed non-NULL. |
| 749 Delegate* delegate_; | 748 Delegate* delegate_; |
| 750 | 749 |
| 751 // Implemented by the owner of this class. These delegates are installed into | 750 // Implemented by the owner of this class. These delegates are installed into |
| 752 // all the RenderFrameHosts that we create. | 751 // all the RenderFrameHosts that we create. |
| 753 RenderFrameHostDelegate* render_frame_delegate_; | 752 RenderFrameHostDelegate* render_frame_delegate_; |
| 754 RenderViewHostDelegate* render_view_delegate_; | |
| 755 RenderWidgetHostDelegate* render_widget_delegate_; | 753 RenderWidgetHostDelegate* render_widget_delegate_; |
| 756 | 754 |
| 757 // Our RenderFrameHost which is responsible for all communication with a child | 755 // Our RenderFrameHost which is responsible for all communication with a child |
| 758 // RenderFrame instance. | 756 // RenderFrame instance. |
| 759 // For now, RenderFrameHost keeps a RenderViewHost in its SiteInstance alive. | 757 // For now, RenderFrameHost keeps a RenderViewHost in its SiteInstance alive. |
| 760 // Eventually, RenderViewHost will be replaced with a page context. | 758 // Eventually, RenderViewHost will be replaced with a page context. |
| 761 std::unique_ptr<RenderFrameHostImpl> render_frame_host_; | 759 std::unique_ptr<RenderFrameHostImpl> render_frame_host_; |
| 762 | 760 |
| 763 // A RenderFrameHost used to load a cross-site page. This remains hidden | 761 // A RenderFrameHost used to load a cross-site page. This remains hidden |
| 764 // while a cross-site request is pending until it calls DidNavigate. | 762 // while a cross-site request is pending until it calls DidNavigate. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 803 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; | 801 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; |
| 804 | 802 |
| 805 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 803 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
| 806 | 804 |
| 807 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 805 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
| 808 }; | 806 }; |
| 809 | 807 |
| 810 } // namespace content | 808 } // namespace content |
| 811 | 809 |
| 812 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 810 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| OLD | NEW |