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

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

Issue 6480079: DownloadFile no longer keeps track of whether or not the final rename has occurred. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits. Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/download/base_file_unittest.cc ('k') | chrome/browser/download/download_file_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_file_manager.h
diff --git a/chrome/browser/download/download_file_manager.h b/chrome/browser/download/download_file_manager.h
index 461b08d93822be6750674139d192f7fd351fb7cf..a0abc99fef0474a7f24094160cead7e116139307 100644
--- a/chrome/browser/download/download_file_manager.h
+++ b/chrome/browser/download/download_file_manager.h
@@ -126,13 +126,22 @@ class DownloadFileManager
// on the FILE thread.
void CancelDownloadOnRename(int id);
+ // Erases the download file with the given the download |id| and removes
+ // it from the maps.
+ void EraseDownload(int id);
+
// Unique ID for each DownloadFile.
int next_id_;
- // A map of all in progress downloads.
typedef base::hash_map<int, DownloadFile*> DownloadFileMap;
+
+ // A map of all in progress downloads. It owns the download files,
+ // although they may also show up in |downloads_with_final_name_|.
DownloadFileMap downloads_;
+ // download files are owned by |downloads_|.
+ DownloadFileMap downloads_with_final_name_;
+
// Schedule periodic updates of the download progress. This timer
// is controlled from the FILE thread, and posts updates to the UI thread.
base::RepeatingTimer<DownloadFileManager> update_timer_;
« no previous file with comments | « chrome/browser/download/base_file_unittest.cc ('k') | chrome/browser/download/download_file_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698