| 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..b43fbe2efc29df5382ee9ecfd3a0e5a0d2ba81dc 100644
|
| --- a/content/browser/renderer_host/render_process_host.h
|
| +++ b/content/browser/renderer_host/render_process_host.h
|
| @@ -101,6 +101,12 @@ class RenderProcessHost : public IPC::Channel::Sender,
|
| // goes away we'll know that it was intentional rather than a crash.
|
| void ReportExpectingClose(int32 listener_id);
|
|
|
| + // 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.
|
| + void AddPendingView();
|
| + void RemovePendingView();
|
| +
|
| // Allows iteration over this RenderProcessHost's RenderViewHost listeners.
|
| // Use from UI thread only.
|
| typedef IDMap<IPC::Channel::Listener>::const_iterator listeners_iterator;
|
| @@ -276,6 +282,11 @@ class RenderProcessHost : public IPC::Channel::Sender,
|
| // True if we've posted a DeleteTask and will be deleted soon.
|
| bool deleting_soon_;
|
|
|
| + // The count of currently swapped out but pending RenderViews. We have
|
| + // started to swap these in, so the renderer process should not exit if
|
| + // this count is non-zero.
|
| + int32 pending_views_;
|
| +
|
| private:
|
| // The globally-unique identifier for this RPH.
|
| int id_;
|
|
|