summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_window.h
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-09 20:40:06 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-09 20:40:06 +0000
commit69444cc086ef3ddf9aaecb4d6bebcb24687c6977 (patch)
treeedf46ca873f1a736095f86614dbb4abff316f14c /chrome/browser/browser_window.h
parentedd32342189ef6329e894ff08456a2c565606355 (diff)
downloadchromium_src-69444cc086ef3ddf9aaecb4d6bebcb24687c6977.zip
chromium_src-69444cc086ef3ddf9aaecb4d6bebcb24687c6977.tar.gz
chromium_src-69444cc086ef3ddf9aaecb4d6bebcb24687c6977.tar.bz2
This CL adds a confirmation box when closing the browser with in-progress downloads.
BUG=1028 TEST=Start several bug downloads, close the browser. A dialog shows up to warn you are about to lose the downloads. Try the wait and continue button. Try again with several windows, and in Incognito mode. Review URL: http://codereview.chromium.org/62131 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13453 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_window.h')
-rw-r--r--chrome/browser/browser_window.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/browser_window.h b/chrome/browser/browser_window.h
index 50d3dda..e7e8e4f 100644
--- a/chrome/browser/browser_window.h
+++ b/chrome/browser/browser_window.h
@@ -164,6 +164,12 @@ class BrowserWindow {
// Shows the New Profile dialog box.
virtual void ShowNewProfileDialog() = 0;
+ // Shows the confirmation dialog box warning that the browser is closing with
+ // in-progress downloads.
+ // This method should call Browser::InProgressDownloadResponse once the user
+ // has confirmed.
+ virtual void ConfirmBrowserCloseWithPendingDownloads() = 0;
+
// Shows a dialog box with HTML content, e.g. for Gears. |parent_window| is
// the window the dialog should be opened modal to and is a native window
// handle.