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

Unified Diff: chrome/browser/download/download_manager.h

Issue 10743: Use the most recently used download path when displaying a "save as" dialog.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browsing_data_remover.cc ('k') | chrome/browser/download/download_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_manager.h
===================================================================
--- chrome/browser/download/download_manager.h (revision 5442)
+++ chrome/browser/download/download_manager.h (working copy)
@@ -366,6 +366,9 @@
std::wstring download_path() { return *download_path_; }
+ // Clears the last download path, used to initialize "save as" dialogs.
+ void ClearLastDownloadPath();
+
// Registers this file extension for automatic opening upon download
// completion if 'open' is true, or prevents the extension from automatic
// opening if 'open' is false.
@@ -401,6 +404,10 @@
// Shutdown the download manager. This call is needed only after Init.
void Shutdown();
+ // Determines whether the "save as" dialog should be displayed to the user
+ // when downloading a file.
+ bool ShouldDisplaySaveAsDialog(const DownloadCreateInfo* info);
+
// Called on the download thread to check whether the suggested file path
// exists. We don't check if the file exists on the UI thread to avoid UI
// stalls from interacting with the file system.
« no previous file with comments | « chrome/browser/browsing_data_remover.cc ('k') | chrome/browser/download/download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698