Chromium Code Reviews| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 195 // You must call Init() before using this class. | 195 // You must call Init() before using this class. |
| 196 RenderFrameHostManager( | 196 RenderFrameHostManager( |
| 197 FrameTreeNode* frame_tree_node, | 197 FrameTreeNode* frame_tree_node, |
| 198 RenderFrameHostDelegate* render_frame_delegate, | 198 RenderFrameHostDelegate* render_frame_delegate, |
| 199 RenderViewHostDelegate* render_view_delegate, | 199 RenderViewHostDelegate* render_view_delegate, |
| 200 RenderWidgetHostDelegate* render_widget_delegate, | 200 RenderWidgetHostDelegate* render_widget_delegate, |
| 201 Delegate* delegate); | 201 Delegate* delegate); |
| 202 ~RenderFrameHostManager(); | 202 ~RenderFrameHostManager(); |
| 203 | 203 |
| 204 // For arguments, see WebContentsImpl constructor. | 204 // For arguments, see WebContentsImpl constructor. |
| 205 void Init(BrowserContext* browser_context, | 205 // TODO(dcheng): |site_instance| should probably be a const scoped_refptr<>&. |
|
ncarter (slow)
2015/09/03 20:24:37
I think this is worth contemplating, but I don't t
dcheng
2015/09/03 21:29:24
Comment removed.
| |
| 206 SiteInstance* site_instance, | 206 void Init(SiteInstance* site_instance, |
| 207 int32 view_routing_id, | 207 int32 view_routing_id, |
| 208 int32 frame_routing_id, | 208 int32 frame_routing_id, |
| 209 int32 widget_routing_id, | 209 int32 widget_routing_id, |
| 210 int32 surface_id); | 210 int32 surface_id); |
| 211 | 211 |
| 212 // Returns the currently active RenderFrameHost. | 212 // Returns the currently active RenderFrameHost. |
| 213 // | 213 // |
| 214 // This will be non-NULL between Init() and Shutdown(). You may want to NULL | 214 // This will be non-NULL between Init() and Shutdown(). You may want to NULL |
| 215 // check it in many cases, however. Windows can send us messages during the | 215 // check it in many cases, however. Windows can send us messages during the |
| 216 // destruction process after it has been shut down. | 216 // destruction process after it has been shut down. |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 819 bool should_reuse_web_ui_; | 819 bool should_reuse_web_ui_; |
| 820 | 820 |
| 821 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 821 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
| 822 | 822 |
| 823 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 823 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
| 824 }; | 824 }; |
| 825 | 825 |
| 826 } // namespace content | 826 } // namespace content |
| 827 | 827 |
| 828 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 828 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| OLD | NEW |