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

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

Issue 1799163002: Remove swapped out state from RenderFrameHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 35195ba830e8ee03acb27607c324e071e9b4e0cf..ad89fc255bccf8c0c278c95e787a44c395c54ca9 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -115,10 +115,6 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost,
// will either enter STATE_SWAPPED_OUT (if it is a main frame and there are
// other active frames in its SiteInstance) or it will be deleted.
Charlie Reis 2016/03/14 20:12:57 Let's update this comment, too. (Maybe sometime w
nasko 2016/03/14 21:32:30 Yeah, I'd convert this to boolean separately.
STATE_PENDING_SWAP_OUT,
- // The RFH is swapped out and stored inside a RenderFrameProxyHost, being
- // used as a placeholder to allow cross-process communication. Only main
- // frames can enter this state.
- STATE_SWAPPED_OUT,
};
// Helper function to determine whether the RFH state should contribute to the
// number of active frames of a SiteInstance or not.
@@ -362,10 +358,6 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost,
// out.
void OnSwappedOut();
- // Whether this RenderFrameHost has been swapped out, such that the frame is
- // now rendered by a RenderFrameHost in a different process.
- bool is_swapped_out() const { return rfh_state_ == STATE_SWAPPED_OUT; }
-
// The current state of this RFH.
RenderFrameHostImplState rfh_state() const { return rfh_state_; }

Powered by Google App Engine
This is Rietveld 408576698