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

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

Issue 2877008: Rename the download to its final name only after the download is finished (Closed)
Patch Set: rebase Created 10 years, 5 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/download_file_manager.cc ('k') | chrome/browser/download/download_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_item.h
diff --git a/chrome/browser/download/download_item.h b/chrome/browser/download/download_item.h
index 1a1b6279a4c1b164231e1cf7fb6ec30dcad68a79..dc6ed2a5b867eaef1c1a5fb1e4a90e758297edb1 100644
--- a/chrome/browser/download/download_item.h
+++ b/chrome/browser/download/download_item.h
@@ -192,6 +192,10 @@ class DownloadItem {
}
bool is_temporary() const { return is_temporary_; }
void set_is_temporary(bool is_temporary) { is_temporary_ = is_temporary; }
+ bool need_final_rename() const { return need_final_rename_; }
+ void set_need_final_rename(bool need_final_rename) {
+ need_final_rename_ = need_final_rename;
+ }
// Returns the file-name that should be reported to the user, which is
// file_name_ for safe downloads and original_name_ for dangerous ones with
@@ -293,6 +297,9 @@ class DownloadItem {
// True if the item was downloaded temporarily.
bool is_temporary_;
+ // True if the file needs final rename.
+ bool need_final_rename_;
+
DISALLOW_COPY_AND_ASSIGN(DownloadItem);
};
« no previous file with comments | « chrome/browser/download/download_file_manager.cc ('k') | chrome/browser/download/download_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698