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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 virtual void BeforeUnloadFiredFromRenderManager( | 136 virtual void BeforeUnloadFiredFromRenderManager( |
137 bool proceed, const base::TimeTicks& proceed_time, | 137 bool proceed, const base::TimeTicks& proceed_time, |
138 bool* proceed_to_fire_unload) = 0; | 138 bool* proceed_to_fire_unload) = 0; |
139 virtual void RenderProcessGoneFromRenderManager( | 139 virtual void RenderProcessGoneFromRenderManager( |
140 RenderViewHost* render_view_host) = 0; | 140 RenderViewHost* render_view_host) = 0; |
141 virtual void UpdateRenderViewSizeForRenderManager() = 0; | 141 virtual void UpdateRenderViewSizeForRenderManager() = 0; |
142 virtual void CancelModalDialogsForRenderManager() = 0; | 142 virtual void CancelModalDialogsForRenderManager() = 0; |
143 virtual void NotifySwappedFromRenderManager(RenderFrameHost* old_host, | 143 virtual void NotifySwappedFromRenderManager(RenderFrameHost* old_host, |
144 RenderFrameHost* new_host, | 144 RenderFrameHost* new_host, |
145 bool is_main_frame) = 0; | 145 bool is_main_frame) = 0; |
| 146 // Notifies the new host of the best color to use as an initial background, |
| 147 // before any content is loaded. |
| 148 virtual void NotifyInitialBackground(SkColor old_background, |
| 149 RenderFrameHost* new_host) = 0; |
146 // TODO(nasko): This should be removed once extensions no longer use | 150 // TODO(nasko): This should be removed once extensions no longer use |
147 // NotificationService. See https://crbug.com/462682. | 151 // NotificationService. See https://crbug.com/462682. |
148 virtual void NotifyMainFrameSwappedFromRenderManager( | 152 virtual void NotifyMainFrameSwappedFromRenderManager( |
149 RenderViewHost* old_host, | 153 RenderViewHost* old_host, |
150 RenderViewHost* new_host) = 0; | 154 RenderViewHost* new_host) = 0; |
151 virtual NavigationControllerImpl& | 155 virtual NavigationControllerImpl& |
152 GetControllerForRenderManager() = 0; | 156 GetControllerForRenderManager() = 0; |
153 | 157 |
154 // Returns the navigation entry of the current navigation, or NULL if there | 158 // Returns the navigation entry of the current navigation, or NULL if there |
155 // is none. | 159 // is none. |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; | 808 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; |
805 | 809 |
806 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 810 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
807 | 811 |
808 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 812 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
809 }; | 813 }; |
810 | 814 |
811 } // namespace content | 815 } // namespace content |
812 | 816 |
813 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 817 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
OLD | NEW |