| 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" |
| (...skipping 172 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 |