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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "content/browser/renderer_host/render_view_host_delegate.h" | 12 #include "content/browser/renderer_host/render_view_host_delegate.h" |
13 #include "content/browser/site_instance_impl.h" | 13 #include "content/browser/site_instance_impl.h" |
14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
15 #include "content/public/browser/notification_observer.h" | 15 #include "content/public/browser/notification_observer.h" |
16 #include "content/public/browser/notification_registrar.h" | 16 #include "content/public/browser/notification_registrar.h" |
17 #include "content/public/common/referrer.h" | 17 #include "content/public/common/referrer.h" |
18 | 18 |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 class BrowserContext; | 21 class BrowserContext; |
| 22 class FrameTreeNode; |
22 class InterstitialPageImpl; | 23 class InterstitialPageImpl; |
23 class FrameTreeNode; | |
24 class NavigationControllerImpl; | 24 class NavigationControllerImpl; |
25 class NavigationEntry; | 25 class NavigationEntry; |
26 class NavigationEntryImpl; | 26 class NavigationEntryImpl; |
27 class RenderFrameHostDelegate; | 27 class RenderFrameHostDelegate; |
28 class RenderFrameHostImpl; | 28 class RenderFrameHostImpl; |
29 class RenderFrameHostManagerTest; | 29 class RenderFrameHostManagerTest; |
30 class RenderViewHost; | 30 class RenderViewHost; |
31 class RenderViewHostImpl; | 31 class RenderViewHostImpl; |
32 class RenderWidgetHostDelegate; | 32 class RenderWidgetHostDelegate; |
33 class RenderWidgetHostView; | 33 class RenderWidgetHostView; |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 | 183 |
184 // Whether to close the tab or not when there is a hang during an unload | 184 // Whether to close the tab or not when there is a hang during an unload |
185 // handler. If we are mid-crosssite navigation, then we should proceed | 185 // handler. If we are mid-crosssite navigation, then we should proceed |
186 // with the navigation instead of closing the tab. | 186 // with the navigation instead of closing the tab. |
187 bool ShouldCloseTabOnUnresponsiveRenderer(); | 187 bool ShouldCloseTabOnUnresponsiveRenderer(); |
188 | 188 |
189 // The RenderViewHost has been swapped out, so we should resume the pending | 189 // The RenderViewHost has been swapped out, so we should resume the pending |
190 // network response and allow the pending RenderViewHost to commit. | 190 // network response and allow the pending RenderViewHost to commit. |
191 void SwappedOut(RenderViewHost* render_view_host); | 191 void SwappedOut(RenderViewHost* render_view_host); |
192 | 192 |
| 193 // The RenderFrameHost has been swapped out, so we should resume the pending |
| 194 // network response and allow the pending RenderFrameHost to commit. |
| 195 void SwappedOutFrame(RenderFrameHostImpl* render_frame_host); |
| 196 |
193 // Called when a renderer's main frame navigates. | 197 // Called when a renderer's main frame navigates. |
194 void DidNavigateMainFrame(RenderViewHost* render_view_host); | 198 void DidNavigateMainFrame(RenderViewHost* render_view_host); |
195 | 199 |
196 // Called when a renderer sets its opener to null. | 200 // Called when a renderer sets its opener to null. |
197 void DidDisownOpener(RenderViewHost* render_view_host); | 201 void DidDisownOpener(RenderViewHost* render_view_host); |
198 | 202 |
199 // Helper method to create and initialize a RenderFrameHost. If |swapped_out| | 203 // Helper method to create and initialize a RenderFrameHost. If |swapped_out| |
200 // is true, it will be initially placed on the swapped out hosts list. | 204 // is true, it will be initially placed on the swapped out hosts list. |
201 // Otherwise, it will be used for a pending cross-site navigation. | 205 // Otherwise, it will be used for a pending cross-site navigation. |
202 int CreateRenderFrame(SiteInstance* instance, | 206 int CreateRenderFrame(SiteInstance* instance, |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 InterstitialPageImpl* interstitial_page_; | 442 InterstitialPageImpl* interstitial_page_; |
439 | 443 |
440 NotificationRegistrar registrar_; | 444 NotificationRegistrar registrar_; |
441 | 445 |
442 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 446 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
443 }; | 447 }; |
444 | 448 |
445 } // namespace content | 449 } // namespace content |
446 | 450 |
447 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 451 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
OLD | NEW |