| 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 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // RenderWidgetHostDelegate are what will be installed into all | 180 // RenderWidgetHostDelegate are what will be installed into all |
| 181 // RenderViewHosts that are created. | 181 // RenderViewHosts that are created. |
| 182 // | 182 // |
| 183 // You must call Init() before using this class. | 183 // You must call Init() before using this class. |
| 184 RenderFrameHostManager( | 184 RenderFrameHostManager( |
| 185 FrameTreeNode* frame_tree_node, | 185 FrameTreeNode* frame_tree_node, |
| 186 RenderFrameHostDelegate* render_frame_delegate, | 186 RenderFrameHostDelegate* render_frame_delegate, |
| 187 RenderViewHostDelegate* render_view_delegate, | 187 RenderViewHostDelegate* render_view_delegate, |
| 188 RenderWidgetHostDelegate* render_widget_delegate, | 188 RenderWidgetHostDelegate* render_widget_delegate, |
| 189 Delegate* delegate); | 189 Delegate* delegate); |
| 190 virtual ~RenderFrameHostManager(); | 190 ~RenderFrameHostManager() override; |
| 191 | 191 |
| 192 // For arguments, see WebContentsImpl constructor. | 192 // For arguments, see WebContentsImpl constructor. |
| 193 void Init(BrowserContext* browser_context, | 193 void Init(BrowserContext* browser_context, |
| 194 SiteInstance* site_instance, | 194 SiteInstance* site_instance, |
| 195 int view_routing_id, | 195 int view_routing_id, |
| 196 int frame_routing_id); | 196 int frame_routing_id); |
| 197 | 197 |
| 198 // Returns the currently active RenderFrameHost. | 198 // Returns the currently active RenderFrameHost. |
| 199 // | 199 // |
| 200 // This will be non-NULL between Init() and Shutdown(). You may want to NULL | 200 // This will be non-NULL between Init() and Shutdown(). You may want to NULL |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 void remove_interstitial_page() { | 319 void remove_interstitial_page() { |
| 320 DCHECK(interstitial_page_); | 320 DCHECK(interstitial_page_); |
| 321 interstitial_page_ = NULL; | 321 interstitial_page_ = NULL; |
| 322 } | 322 } |
| 323 | 323 |
| 324 // Returns the currently showing interstitial, NULL if no interstitial is | 324 // Returns the currently showing interstitial, NULL if no interstitial is |
| 325 // showing. | 325 // showing. |
| 326 InterstitialPageImpl* interstitial_page() const { return interstitial_page_; } | 326 InterstitialPageImpl* interstitial_page() const { return interstitial_page_; } |
| 327 | 327 |
| 328 // NotificationObserver implementation. | 328 // NotificationObserver implementation. |
| 329 virtual void Observe(int type, | 329 void Observe(int type, |
| 330 const NotificationSource& source, | 330 const NotificationSource& source, |
| 331 const NotificationDetails& details) override; | 331 const NotificationDetails& details) override; |
| 332 | 332 |
| 333 // Returns whether the given RenderFrameHost (or its associated | 333 // Returns whether the given RenderFrameHost (or its associated |
| 334 // RenderViewHost) is on the list of swapped out RenderFrameHosts. | 334 // RenderViewHost) is on the list of swapped out RenderFrameHosts. |
| 335 bool IsRVHOnSwappedOutList(RenderViewHostImpl* rvh) const; | 335 bool IsRVHOnSwappedOutList(RenderViewHostImpl* rvh) const; |
| 336 bool IsOnSwappedOutList(RenderFrameHostImpl* rfh) const; | 336 bool IsOnSwappedOutList(RenderFrameHostImpl* rfh) const; |
| 337 | 337 |
| 338 // Returns the swapped out RenderViewHost or RenderFrameHost for the given | 338 // Returns the swapped out RenderViewHost or RenderFrameHost for the given |
| 339 // SiteInstance, if any. This method is *deprecated* and | 339 // SiteInstance, if any. This method is *deprecated* and |
| 340 // GetRenderFrameProxyHost should be used. | 340 // GetRenderFrameProxyHost should be used. |
| 341 RenderViewHostImpl* GetSwappedOutRenderViewHost(SiteInstance* instance) const; | 341 RenderViewHostImpl* GetSwappedOutRenderViewHost(SiteInstance* instance) const; |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 NotificationRegistrar registrar_; | 573 NotificationRegistrar registrar_; |
| 574 | 574 |
| 575 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 575 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
| 576 | 576 |
| 577 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 577 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
| 578 }; | 578 }; |
| 579 | 579 |
| 580 } // namespace content | 580 } // namespace content |
| 581 | 581 |
| 582 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 582 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| OLD | NEW |