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

Unified Diff: content/renderer/render_widget.h

Issue 464593003: Don't swap out the old RenderFrameHost until the new one commits. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase past PlzNavigate CL Created 6 years, 4 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
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index bd97588d082af4c6fac76ac632063837e651d903..b5ada7d29c1e35536223c437d1b57e89619e1d84 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -334,6 +334,10 @@ class CONTENT_EXPORT RenderWidget
// active RenderWidgets.
void SetSwappedOut(bool is_swapped_out);
+ // Allows the process to exit once the unload handler has finished, if there
+ // are no other active RenderWidgets.
+ void WasSwappedOut();
+
void FlushPendingInputEventAck();
void DoDeferredClose();
void DoDeferredSetWindowRect(const blink::WebRect& pos);
@@ -371,7 +375,6 @@ class CONTENT_EXPORT RenderWidget
virtual void OnWasHidden();
virtual void OnWasShown(bool needs_repainting,
const ui::LatencyInfo& latency_info);
- virtual void OnWasSwappedOut();
void OnCreateVideoAck(int32 video_id);
void OnUpdateVideoAck(int32 video_id);
void OnRequestMoveAck();
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698