| 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 // Unsets the currently showing interstitial. | 364 // Unsets the currently showing interstitial. |
| 365 void remove_interstitial_page() { | 365 void remove_interstitial_page() { |
| 366 DCHECK(interstitial_page_); | 366 DCHECK(interstitial_page_); |
| 367 interstitial_page_ = NULL; | 367 interstitial_page_ = NULL; |
| 368 } | 368 } |
| 369 | 369 |
| 370 // Returns the currently showing interstitial, NULL if no interstitial is | 370 // Returns the currently showing interstitial, NULL if no interstitial is |
| 371 // showing. | 371 // showing. |
| 372 InterstitialPageImpl* interstitial_page() const { return interstitial_page_; } | 372 InterstitialPageImpl* interstitial_page() const { return interstitial_page_; } |
| 373 | 373 |
| 374 // Returns whether the given RenderFrameHost (or its associated | |
| 375 // RenderViewHost) is on the list of swapped out RenderFrameHosts. | |
| 376 bool IsRVHOnSwappedOutList(RenderViewHostImpl* rvh) const; | |
| 377 bool IsOnSwappedOutList(RenderFrameHostImpl* rfh) const; | |
| 378 | |
| 379 // Returns the swapped out RenderViewHost for the given SiteInstance, if any. | 374 // Returns the swapped out RenderViewHost for the given SiteInstance, if any. |
| 380 // This method is *deprecated* and GetRenderFrameProxyHost should be used. | 375 // This method is *deprecated* and GetRenderFrameProxyHost should be used. |
| 381 RenderViewHostImpl* GetSwappedOutRenderViewHost(SiteInstance* instance) const; | 376 RenderViewHostImpl* GetSwappedOutRenderViewHost(SiteInstance* instance) const; |
| 382 | 377 |
| 383 // Returns the RenderFrameProxyHost for the given SiteInstance, if any. | 378 // Returns the RenderFrameProxyHost for the given SiteInstance, if any. |
| 384 RenderFrameProxyHost* GetRenderFrameProxyHost( | 379 RenderFrameProxyHost* GetRenderFrameProxyHost( |
| 385 SiteInstance* instance) const; | 380 SiteInstance* instance) const; |
| 386 | 381 |
| 387 // If |render_frame_host| is on the pending deletion list, this deletes it. | 382 // If |render_frame_host| is on the pending deletion list, this deletes it. |
| 388 // Returns whether it was deleted. | 383 // Returns whether it was deleted. |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; | 787 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; |
| 793 | 788 |
| 794 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 789 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
| 795 | 790 |
| 796 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 791 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
| 797 }; | 792 }; |
| 798 | 793 |
| 799 } // namespace content | 794 } // namespace content |
| 800 | 795 |
| 801 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 796 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| OLD | NEW |