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_view_host| will be deleted when its main | |
388 // RenderFrameHost is deleted from the pending deletion list. | |
389 bool IsViewPendingDeletion(RenderViewHostImpl* render_view_host); | |
390 | |
391 // If |render_frame_host| is on the pending deletion list, this deletes it. | 387 // If |render_frame_host| is on the pending deletion list, this deletes it. |
392 // Returns whether it was deleted. | 388 // Returns whether it was deleted. |
393 bool DeleteFromPendingList(RenderFrameHostImpl* render_frame_host); | 389 bool DeleteFromPendingList(RenderFrameHostImpl* render_frame_host); |
394 | 390 |
395 // Deletes any proxy hosts associated with this node. Used during destruction | 391 // Deletes any proxy hosts associated with this node. Used during destruction |
396 // of WebContentsImpl. | 392 // of WebContentsImpl. |
397 void ResetProxyHosts(); | 393 void ResetProxyHosts(); |
398 | 394 |
399 void ClearRFHsPendingShutdown(); | 395 void ClearRFHsPendingShutdown(); |
400 void ClearWebUIInstances(); | 396 void ClearWebUIInstances(); |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; | 792 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; |
797 | 793 |
798 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 794 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
799 | 795 |
800 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 796 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
801 }; | 797 }; |
802 | 798 |
803 } // namespace content | 799 } // namespace content |
804 | 800 |
805 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 801 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
OLD | NEW |