| 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 bool IsOnSwappedOutList(RenderFrameHostImpl* rfh) const; | 377 bool IsOnSwappedOutList(RenderFrameHostImpl* rfh) const; |
| 378 | 378 |
| 379 // Returns the swapped out RenderViewHost for the given SiteInstance, if any. | 379 // Returns the swapped out RenderViewHost for the given SiteInstance, if any. |
| 380 // This method is *deprecated* and GetRenderFrameProxyHost should be used. | 380 // This method is *deprecated* and GetRenderFrameProxyHost should be used. |
| 381 RenderViewHostImpl* GetSwappedOutRenderViewHost(SiteInstance* instance) const; | 381 RenderViewHostImpl* GetSwappedOutRenderViewHost(SiteInstance* instance) const; |
| 382 | 382 |
| 383 // Returns the RenderFrameProxyHost for the given SiteInstance, if any. | 383 // Returns the RenderFrameProxyHost for the given SiteInstance, if any. |
| 384 RenderFrameProxyHost* GetRenderFrameProxyHost( | 384 RenderFrameProxyHost* GetRenderFrameProxyHost( |
| 385 SiteInstance* instance) const; | 385 SiteInstance* instance) const; |
| 386 | 386 |
| 387 // Returns whether |render_frame_host| is on the pending deletion list. | |
| 388 bool IsPendingDeletion(RenderFrameHostImpl* render_frame_host); | |
| 389 | |
| 390 // Returns whether |render_view_host| will be deleted when its main | 387 // Returns whether |render_view_host| will be deleted when its main |
| 391 // RenderFrameHost is deleted from the pending deletion list. | 388 // RenderFrameHost is deleted from the pending deletion list. |
| 392 bool IsViewPendingDeletion(RenderViewHostImpl* render_view_host); | 389 bool IsViewPendingDeletion(RenderViewHostImpl* render_view_host); |
| 393 | 390 |
| 394 // If |render_frame_host| is on the pending deletion list, this deletes it. | 391 // If |render_frame_host| is on the pending deletion list, this deletes it. |
| 395 // Returns whether it was deleted. | 392 // Returns whether it was deleted. |
| 396 bool DeleteFromPendingList(RenderFrameHostImpl* render_frame_host); | 393 bool DeleteFromPendingList(RenderFrameHostImpl* render_frame_host); |
| 397 | 394 |
| 398 // Deletes any proxy hosts associated with this node. Used during destruction | 395 // Deletes any proxy hosts associated with this node. Used during destruction |
| 399 // of WebContentsImpl. | 396 // of WebContentsImpl. |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 796 scoped_ptr<RenderFrameHostImpl> speculative_render_frame_host_; | 793 scoped_ptr<RenderFrameHostImpl> speculative_render_frame_host_; |
| 797 | 794 |
| 798 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 795 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
| 799 | 796 |
| 800 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 797 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
| 801 }; | 798 }; |
| 802 | 799 |
| 803 } // namespace content | 800 } // namespace content |
| 804 | 801 |
| 805 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 802 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| OLD | NEW |