summaryrefslogtreecommitdiffstats
path: root/chrome/browser/render_widget_helper.h
diff options
context:
space:
mode:
authorojan@google.com <ojan@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-07-29 23:32:47 +0000
committerojan@google.com <ojan@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-07-29 23:32:47 +0000
commitc82192d62ae8518837f448f9bbd9d0c93cd4af13 (patch)
tree795361f6bb6033caf55862386541c70e08b969be /chrome/browser/render_widget_helper.h
parent9a2bba4ed0996b8bc9f8dab235ad83af3f155948 (diff)
downloadchromium_src-c82192d62ae8518837f448f9bbd9d0c93cd4af13.zip
chromium_src-c82192d62ae8518837f448f9bbd9d0c93cd4af13.tar.gz
chromium_src-c82192d62ae8518837f448f9bbd9d0c93cd4af13.tar.bz2
Fix not closing the browser with hung, crashed and interstitial tabs. Adds a 1 second hang monitor for the beforeunload/unload events to fire.
BUG=1296059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/render_widget_helper.h')
-rw-r--r--chrome/browser/render_widget_helper.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/render_widget_helper.h b/chrome/browser/render_widget_helper.h
index 1a7f939..27360a3 100644
--- a/chrome/browser/render_widget_helper.h
+++ b/chrome/browser/render_widget_helper.h
@@ -116,7 +116,8 @@ class RenderWidgetHelper :
// that the original RenderViewHost is not live and thus cannot run an
// onunload handler.
void CrossSiteClosePageACK(int new_render_process_host_id,
- int new_request_id);
+ int new_request_id,
+ bool is_closing_browser);
// Called on the UI thread to wait for the next PaintRect message for the
// specified render widget. Returns true if successful, and the msg out-
@@ -158,7 +159,8 @@ class RenderWidgetHelper :
// Called on the IO thread to resume a cross-site response.
void OnCrossSiteClosePageACK(ResourceDispatcherHost* dispatcher,
int new_render_process_host_id,
- int new_request_id);
+ int new_request_id,
+ bool is_closing_browser);
// A map of live paint messages. Must hold pending_paints_lock_ to access.
// The PaintMsgProxy objects are not owned by this map. (See PaintMsgProxy