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

Side by Side Diff: chrome/browser/browser_window.h

Issue 62131: Ask for user confirmation when closing a browser with in-progress downloads (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_BROWSER_WINDOW_H_ 5 #ifndef CHROME_BROWSER_BROWSER_WINDOW_H_
6 #define CHROME_BROWSER_BROWSER_WINDOW_H_ 6 #define CHROME_BROWSER_BROWSER_WINDOW_H_
7 7
8 #include "base/gfx/native_widget_types.h" 8 #include "base/gfx/native_widget_types.h"
9 9
10 class Browser; 10 class Browser;
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 157
158 // Shows the Password Manager dialog box. 158 // Shows the Password Manager dialog box.
159 virtual void ShowPasswordManager() = 0; 159 virtual void ShowPasswordManager() = 0;
160 160
161 // Shows the Select Profile dialog box. 161 // Shows the Select Profile dialog box.
162 virtual void ShowSelectProfileDialog() = 0; 162 virtual void ShowSelectProfileDialog() = 0;
163 163
164 // Shows the New Profile dialog box. 164 // Shows the New Profile dialog box.
165 virtual void ShowNewProfileDialog() = 0; 165 virtual void ShowNewProfileDialog() = 0;
166 166
167 // Shows the confirmation dialog box warning that the browser is closing with
168 // in-progress downloads.
169 // This method should call Browser::InProgressDownloadResponse once the user
170 // has confirmed.
171 virtual void ConfirmBrowserCloseWithPendingDownloads() = 0;
172
167 // Shows a dialog box with HTML content, e.g. for Gears. |parent_window| is 173 // Shows a dialog box with HTML content, e.g. for Gears. |parent_window| is
168 // the window the dialog should be opened modal to and is a native window 174 // the window the dialog should be opened modal to and is a native window
169 // handle. 175 // handle.
170 virtual void ShowHTMLDialog(HtmlDialogUIDelegate* delegate, 176 virtual void ShowHTMLDialog(HtmlDialogUIDelegate* delegate,
171 void* parent_window) = 0; 177 void* parent_window) = 0;
172 178
173 // Construct a BrowserWindow implementation for the specified |browser|. 179 // Construct a BrowserWindow implementation for the specified |browser|.
174 static BrowserWindow* CreateBrowserWindow(Browser* browser); 180 static BrowserWindow* CreateBrowserWindow(Browser* browser);
175 181
176 // Construct a FindBar implementation for the specified |browser|. 182 // Construct a FindBar implementation for the specified |browser|.
(...skipping 15 matching lines...) Expand all
192 #if defined(OS_WIN) 198 #if defined(OS_WIN)
193 // Returns the BookmarkBarView. 199 // Returns the BookmarkBarView.
194 virtual BookmarkBarView* GetBookmarkBarView() const = 0; 200 virtual BookmarkBarView* GetBookmarkBarView() const = 0;
195 201
196 // Returns the LocationBarView. 202 // Returns the LocationBarView.
197 virtual LocationBarView* GetLocationBarView() const = 0; 203 virtual LocationBarView* GetLocationBarView() const = 0;
198 #endif 204 #endif
199 }; 205 };
200 206
201 #endif // CHROME_BROWSER_BROWSER_WINDOW_H_ 207 #endif // CHROME_BROWSER_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698