Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Side by Side Diff: content/browser/frame_host/render_frame_host_manager.h

Issue 257083002: Check BrowsingInstance before swapping prerenders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 void CommitPending(); 388 void CommitPending();
389 389
390 // Shutdown all RenderFrameHosts in a SiteInstance. This is called to shutdown 390 // Shutdown all RenderFrameHosts in a SiteInstance. This is called to shutdown
391 // frames when all the frames in a SiteInstance are confirmed to be swapped 391 // frames when all the frames in a SiteInstance are confirmed to be swapped
392 // out. 392 // out.
393 void ShutdownRenderFrameHostsInSiteInstance(int32 site_instance_id); 393 void ShutdownRenderFrameHostsInSiteInstance(int32 site_instance_id);
394 394
395 // Helper method to terminate the pending RenderViewHost. 395 // Helper method to terminate the pending RenderViewHost.
396 void CancelPending(); 396 void CancelPending();
397 397
398 // Helper method to set the active RenderFrameHost. Returns the old
399 // RenderFrameHost and updates counts.
400 scoped_ptr<RenderFrameHostImpl> SetRenderFrameHost(
401 scoped_ptr<RenderFrameHostImpl> render_frame_host);
402
398 RenderFrameHostImpl* UpdateStateForNavigate( 403 RenderFrameHostImpl* UpdateStateForNavigate(
399 const NavigationEntryImpl& entry); 404 const NavigationEntryImpl& entry);
400 405
401 // Called when a renderer process is starting to close. We should not 406 // Called when a renderer process is starting to close. We should not
402 // schedule new navigations in its swapped out RenderFrameHosts after this. 407 // schedule new navigations in its swapped out RenderFrameHosts after this.
403 void RendererProcessClosing(RenderProcessHost* render_process_host); 408 void RendererProcessClosing(RenderProcessHost* render_process_host);
404 409
405 // For use in creating RenderFrameHosts. 410 // For use in creating RenderFrameHosts.
406 FrameTreeNode* frame_tree_node_; 411 FrameTreeNode* frame_tree_node_;
407 412
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 CrossProcessFrameConnector* cross_process_frame_connector_; 477 CrossProcessFrameConnector* cross_process_frame_connector_;
473 478
474 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; 479 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_;
475 480
476 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); 481 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager);
477 }; 482 };
478 483
479 } // namespace content 484 } // namespace content
480 485
481 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ 486 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698