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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 387 // Returns whether |render_frame_host| is on the pending deletion list. |
388 bool IsPendingDeletion(RenderFrameHostImpl* render_frame_host); | 388 bool IsPendingDeletion(RenderFrameHostImpl* render_frame_host); |
389 | 389 |
| 390 // Returns whether |render_view_host| will be deleted when its main |
| 391 // RenderFrameHost is deleted from the pending deletion list. |
| 392 bool IsViewPendingDeletion(RenderViewHostImpl* render_view_host); |
| 393 |
390 // If |render_frame_host| is on the pending deletion list, this deletes it. | 394 // If |render_frame_host| is on the pending deletion list, this deletes it. |
391 // Returns whether it was deleted. | 395 // Returns whether it was deleted. |
392 bool DeleteFromPendingList(RenderFrameHostImpl* render_frame_host); | 396 bool DeleteFromPendingList(RenderFrameHostImpl* render_frame_host); |
393 | 397 |
394 // Deletes any proxy hosts associated with this node. Used during destruction | 398 // Deletes any proxy hosts associated with this node. Used during destruction |
395 // of WebContentsImpl. | 399 // of WebContentsImpl. |
396 void ResetProxyHosts(); | 400 void ResetProxyHosts(); |
397 | 401 |
398 void ClearRFHsPendingShutdown(); | 402 void ClearRFHsPendingShutdown(); |
399 void ClearWebUIInstances(); | 403 void ClearWebUIInstances(); |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
781 scoped_ptr<RenderFrameHostImpl> speculative_render_frame_host_; | 785 scoped_ptr<RenderFrameHostImpl> speculative_render_frame_host_; |
782 | 786 |
783 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 787 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
784 | 788 |
785 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 789 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
786 }; | 790 }; |
787 | 791 |
788 } // namespace content | 792 } // namespace content |
789 | 793 |
790 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 794 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
OLD | NEW |