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

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

Issue 208243019: Move SwapOut methods to RenderFrameHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Nasko's comment Created 6 years, 8 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // transferred between renderers. 210 // transferred between renderers.
211 void OnCrossSiteResponse( 211 void OnCrossSiteResponse(
212 RenderFrameHostImpl* pending_render_frame_host, 212 RenderFrameHostImpl* pending_render_frame_host,
213 const GlobalRequestID& global_request_id, 213 const GlobalRequestID& global_request_id,
214 scoped_ptr<CrossSiteTransferringRequest> cross_site_transferring_request, 214 scoped_ptr<CrossSiteTransferringRequest> cross_site_transferring_request,
215 const std::vector<GURL>& transfer_url_chain, 215 const std::vector<GURL>& transfer_url_chain,
216 const Referrer& referrer, 216 const Referrer& referrer,
217 PageTransition page_transition, 217 PageTransition page_transition,
218 bool should_replace_current_entry); 218 bool should_replace_current_entry);
219 219
220 // The RenderViewHost has been swapped out, so we should resume the pending
221 // network response and allow the pending RenderViewHost to commit.
222 void SwappedOut(RenderViewHost* render_view_host);
223
224 // The RenderFrameHost has been swapped out, so we should resume the pending 220 // The RenderFrameHost has been swapped out, so we should resume the pending
225 // network response and allow the pending RenderFrameHost to commit. 221 // network response and allow the pending RenderFrameHost to commit.
226 void SwappedOutFrame(RenderFrameHostImpl* render_frame_host); 222 void SwappedOut(RenderFrameHostImpl* render_frame_host);
227 223
228 // Called when a renderer's frame navigates. 224 // Called when a renderer's frame navigates.
229 void DidNavigateFrame(RenderFrameHostImpl* render_frame_host); 225 void DidNavigateFrame(RenderFrameHostImpl* render_frame_host);
230 226
231 // Called when a renderer sets its opener to null. 227 // Called when a renderer sets its opener to null.
232 void DidDisownOpener(RenderViewHost* render_view_host); 228 void DidDisownOpener(RenderViewHost* render_view_host);
233 229
234 // Helper method to create and initialize a RenderFrameHost. If |swapped_out| 230 // Helper method to create and initialize a RenderFrameHost. If |swapped_out|
235 // is true, it will be initially placed on the swapped out hosts list. 231 // is true, it will be initially placed on the swapped out hosts list.
236 // Otherwise, it will be used for a pending cross-site navigation. 232 // Otherwise, it will be used for a pending cross-site navigation.
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 CrossProcessFrameConnector* cross_process_frame_connector_; 471 CrossProcessFrameConnector* cross_process_frame_connector_;
476 472
477 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; 473 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_;
478 474
479 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); 475 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager);
480 }; 476 };
481 477
482 } // namespace content 478 } // namespace content
483 479
484 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ 480 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/frame_host/render_frame_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698