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 685 matching lines...) Loading... |
696 // Sets the pending RenderFrameHost to be the active one. Call when the | 696 // Sets the pending RenderFrameHost to be the active one. Call when the |
697 // pending RenderFrameHost commits. | 697 // pending RenderFrameHost commits. |
698 // If PlzNavigate is enabled the method will set the speculative (not pending) | 698 // If PlzNavigate is enabled the method will set the speculative (not pending) |
699 // RenderFrameHost to be the active one. | 699 // RenderFrameHost to be the active one. |
700 void CommitPending(); | 700 void CommitPending(); |
701 | 701 |
702 // Helper to call CommitPending() in all necessary cases. | 702 // Helper to call CommitPending() in all necessary cases. |
703 void CommitPendingIfNecessary(RenderFrameHostImpl* render_frame_host, | 703 void CommitPendingIfNecessary(RenderFrameHostImpl* render_frame_host, |
704 bool was_caused_by_user_gesture); | 704 bool was_caused_by_user_gesture); |
705 | 705 |
706 // Commits any pending sandbox flag updates when the renderer's frame | 706 // Commits any pending sandbox flag or feature policy updates when the |
707 // navigates. | 707 // renderer's frame navigates. |
708 void CommitPendingSandboxFlags(); | 708 void CommitPendingFramePolicy(); |
709 | 709 |
710 // Runs the unload handler in the old RenderFrameHost, after the new | 710 // Runs the unload handler in the old RenderFrameHost, after the new |
711 // RenderFrameHost has committed. |old_render_frame_host| will either be | 711 // RenderFrameHost has committed. |old_render_frame_host| will either be |
712 // deleted or put on the pending delete list during this call. | 712 // deleted or put on the pending delete list during this call. |
713 void SwapOutOldFrame( | 713 void SwapOutOldFrame( |
714 std::unique_ptr<RenderFrameHostImpl> old_render_frame_host); | 714 std::unique_ptr<RenderFrameHostImpl> old_render_frame_host); |
715 | 715 |
716 // Discards a RenderFrameHost that was never made active (for active ones | 716 // Discards a RenderFrameHost that was never made active (for active ones |
717 // SwapOutOldFrame is used instead). | 717 // SwapOutOldFrame is used instead). |
718 void DiscardUnusedFrame( | 718 void DiscardUnusedFrame( |
(...skipping 91 matching lines...) Loading... |
810 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; | 810 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; |
811 | 811 |
812 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 812 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
813 | 813 |
814 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 814 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
815 }; | 815 }; |
816 | 816 |
817 } // namespace content | 817 } // namespace content |
818 | 818 |
819 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 819 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
OLD | NEW |