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 <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 // You must call Init() before using this class. | 194 // You must call Init() before using this class. |
195 RenderFrameHostManager( | 195 RenderFrameHostManager( |
196 FrameTreeNode* frame_tree_node, | 196 FrameTreeNode* frame_tree_node, |
197 RenderFrameHostDelegate* render_frame_delegate, | 197 RenderFrameHostDelegate* render_frame_delegate, |
198 RenderViewHostDelegate* render_view_delegate, | 198 RenderViewHostDelegate* render_view_delegate, |
199 RenderWidgetHostDelegate* render_widget_delegate, | 199 RenderWidgetHostDelegate* render_widget_delegate, |
200 Delegate* delegate); | 200 Delegate* delegate); |
201 ~RenderFrameHostManager(); | 201 ~RenderFrameHostManager(); |
202 | 202 |
203 // For arguments, see WebContentsImpl constructor. | 203 // For arguments, see WebContentsImpl constructor. |
204 void Init(BrowserContext* browser_context, | 204 void Init(SiteInstance* site_instance, |
205 SiteInstance* site_instance, | |
206 int32 view_routing_id, | 205 int32 view_routing_id, |
207 int32 frame_routing_id, | 206 int32 frame_routing_id, |
208 int32 widget_routing_id); | 207 int32 widget_routing_id); |
209 | 208 |
210 // Returns the currently active RenderFrameHost. | 209 // Returns the currently active RenderFrameHost. |
211 // | 210 // |
212 // This will be non-NULL between Init() and Shutdown(). You may want to NULL | 211 // This will be non-NULL between Init() and Shutdown(). You may want to NULL |
213 // check it in many cases, however. Windows can send us messages during the | 212 // check it in many cases, however. Windows can send us messages during the |
214 // destruction process after it has been shut down. | 213 // destruction process after it has been shut down. |
215 RenderFrameHostImpl* current_frame_host() const { | 214 RenderFrameHostImpl* current_frame_host() const { |
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
827 bool should_reuse_web_ui_; | 826 bool should_reuse_web_ui_; |
828 | 827 |
829 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 828 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
830 | 829 |
831 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 830 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
832 }; | 831 }; |
833 | 832 |
834 } // namespace content | 833 } // namespace content |
835 | 834 |
836 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 835 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
OLD | NEW |