summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/render_process_host.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-02 18:11:09 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-02 18:11:09 +0000
commitbfe4c158cd0372fa7a602997f65b42a92645aaf3 (patch)
treedbda26fa776eb9c3b5fcca2e1b1fa956db1985e8 /chrome/browser/renderer_host/render_process_host.h
parent5fa6d7fa100a6836cc7b791a094468f8c384807b (diff)
downloadchromium_src-bfe4c158cd0372fa7a602997f65b42a92645aaf3.zip
chromium_src-bfe4c158cd0372fa7a602997f65b42a92645aaf3.tar.gz
chromium_src-bfe4c158cd0372fa7a602997f65b42a92645aaf3.tar.bz2
Any time we are shutting down a tab, try to use fast shutdown.
BUG=http://crbug.com/5638 TEST=existing tab strip model tests, Fast shutdown ui tests, new tab strip model fast shutdown test Review URL: http://codereview.chromium.org/235050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27865 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/render_process_host.h')
-rw-r--r--chrome/browser/renderer_host/render_process_host.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/chrome/browser/renderer_host/render_process_host.h b/chrome/browser/renderer_host/render_process_host.h
index 22d5b90..f266e53 100644
--- a/chrome/browser/renderer_host/render_process_host.h
+++ b/chrome/browser/renderer_host/render_process_host.h
@@ -108,6 +108,15 @@ class RenderProcessHost : public IPC::Channel::Sender,
return ignore_input_events_;
}
+ // Try to shutdown the associated render process as fast as possible, but
+ // only if |count| matches the number of render widgets that this process
+ // controls.
+ bool FastShutdownForPageCount(size_t count);
+
+ bool fast_shutdown_started() {
+ return fast_shutdown_started_;
+ }
+
// Virtual interface ---------------------------------------------------------
// Initialize the new renderer process, returning true on success. This must
@@ -220,13 +229,16 @@ class RenderProcessHost : public IPC::Channel::Sender,
// browser_process.h)
scoped_ptr<IPC::SyncChannel> channel_;
- // the registered listeners. When this list is empty or all NULL, we should
+ // The registered listeners. When this list is empty or all NULL, we should
// delete ourselves
IDMap<IPC::Channel::Listener> listeners_;
// The maximum page ID we've ever seen from the renderer process.
int32 max_page_id_;
+ // True if fast shutdown has been performed on this RPH.
+ bool fast_shutdown_started_;
+
private:
// The globally-uniqe identifier for this RPH.
int id_;