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

Unified Diff: content/browser/renderer_host/render_widget_host.cc

Issue 6319001: Support window.opener after a process swap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add WasSwappedOut message for clean exit. Created 9 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host.cc
diff --git a/content/browser/renderer_host/render_widget_host.cc b/content/browser/renderer_host/render_widget_host.cc
index ca675f4f283b43ac61a29343c58aefdff4876ea9..7b4e32047e055c7d3fe9809e9902244acb05cd71 100644
--- a/content/browser/renderer_host/render_widget_host.cc
+++ b/content/browser/renderer_host/render_widget_host.cc
@@ -300,6 +300,14 @@ void RenderWidgetHost::WasRestored() {
WasResized();
}
+void RenderWidgetHost::WasSwappedOut() {
Charlie Reis 2011/04/29 17:53:53 I also moved this to RenderViewHost, since we don'
+ // Don't bother reporting hung state anymore.
+ StopHangMonitorTimeout();
+
+ // Inform the renderer that it can exit if no one else is using it.
+ Send(new ViewMsg_WasSwappedOut(routing_id_));
+}
+
void RenderWidgetHost::WasResized() {
if (resize_ack_pending_ || !process_->HasConnection() || !view_ ||
!renderer_initialized_) {

Powered by Google App Engine
This is Rietveld 408576698