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

Unified Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 208243019: Move SwapOut methods to RenderFrameHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/render_frame_host_impl.h
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
index 919b07f002d6850278923854d7a550f237760dc6..ed0844ed7f36111008266594b1493c1182042f0a 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -114,9 +114,14 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost {
PageTransition page_transition,
bool should_replace_current_entry);
- // Hack to get this subframe to swap out, without yet moving over all the
- // SwapOut state and machinery from RenderViewHost.
+ // Tells the renderer that this RenderFrame is being swapped out for one in a
+ // different renderer process. It should run its unload handler and move to
+ // a blank document. The renderer should preserve the Frame object until it
+ // exits, in case we come back. The renderer can exit if it has no other
+ // active RenderFrames, but not until WasSwappedOut is called (when it is no
+ // longer visible).
void SwapOut();
+
void OnSwappedOut(bool timed_out);
bool is_swapped_out() { return is_swapped_out_; }
void set_swapped_out(bool is_swapped_out) {

Powered by Google App Engine
This is Rietveld 408576698