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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 void CommitPending(); | 385 void CommitPending(); |
386 | 386 |
387 // Shutdown all RenderFrameHosts in a SiteInstance. This is called to shutdown | 387 // Shutdown all RenderFrameHosts in a SiteInstance. This is called to shutdown |
388 // frames when all the frames in a SiteInstance are confirmed to be swapped | 388 // frames when all the frames in a SiteInstance are confirmed to be swapped |
389 // out. | 389 // out. |
390 void ShutdownRenderFrameHostsInSiteInstance(int32 site_instance_id); | 390 void ShutdownRenderFrameHostsInSiteInstance(int32 site_instance_id); |
391 | 391 |
392 // Helper method to terminate the pending RenderViewHost. | 392 // Helper method to terminate the pending RenderViewHost. |
393 void CancelPending(); | 393 void CancelPending(); |
394 | 394 |
| 395 // Helper method to set the active RenderFrameHost. Returns the old |
| 396 // RenderFrameHost and updates counts. |
| 397 scoped_ptr<RenderFrameHostImpl> SetRenderFrameHost( |
| 398 scoped_ptr<RenderFrameHostImpl> render_frame_host); |
| 399 |
395 RenderFrameHostImpl* UpdateStateForNavigate( | 400 RenderFrameHostImpl* UpdateStateForNavigate( |
396 const NavigationEntryImpl& entry); | 401 const NavigationEntryImpl& entry); |
397 | 402 |
398 // Called when a renderer process is starting to close. We should not | 403 // Called when a renderer process is starting to close. We should not |
399 // schedule new navigations in its swapped out RenderFrameHosts after this. | 404 // schedule new navigations in its swapped out RenderFrameHosts after this. |
400 void RendererProcessClosing(RenderProcessHost* render_process_host); | 405 void RendererProcessClosing(RenderProcessHost* render_process_host); |
401 | 406 |
402 // For use in creating RenderFrameHosts. | 407 // For use in creating RenderFrameHosts. |
403 FrameTreeNode* frame_tree_node_; | 408 FrameTreeNode* frame_tree_node_; |
404 | 409 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 CrossProcessFrameConnector* cross_process_frame_connector_; | 474 CrossProcessFrameConnector* cross_process_frame_connector_; |
470 | 475 |
471 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 476 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
472 | 477 |
473 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 478 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
474 }; | 479 }; |
475 | 480 |
476 } // namespace content | 481 } // namespace content |
477 | 482 |
478 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 483 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
OLD | NEW |