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

Unified Diff: content/browser/renderer_host/render_process_host.h

Issue 6927014: Avoid exiting the renderer process if it has a pending render view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix pre-render issue. 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_process_host.h
diff --git a/content/browser/renderer_host/render_process_host.h b/content/browser/renderer_host/render_process_host.h
index b38402658e297a0061e09cfe23dec2f20da1c73a..ee6c7ed6420502a924a0144eb23c2e57d4f3350b 100644
--- a/content/browser/renderer_host/render_process_host.h
+++ b/content/browser/renderer_host/render_process_host.h
@@ -190,6 +190,13 @@ class RenderProcessHost : public IPC::Channel::Sender,
virtual void WidgetHidden() = 0;
virtual int VisibleWidgetCount() const = 0;
+ // Track the count of pending views that are being swapped back in. Called
+ // by listeners to register and unregister pending views to prevent the
+ // process from exiting.
+ virtual void AddPendingView() = 0;
+ virtual void RemovePendingView() = 0;
+ virtual int PendingViewCount() const = 0;
+
// Try to shutdown the associated renderer process as fast as possible.
// If this renderer has any RenderViews with unload handlers, then this
// function does nothing. The current implementation uses TerminateProcess.

Powered by Google App Engine
This is Rietveld 408576698