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

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

Issue 6096003: Put history insertion for downloads processing inline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated comments, fixed windows int64->int compile error. Created 9 years, 11 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 | « no previous file | 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 7471994d06362483bb21f0343a59254aef42cbbf..ad41c6cccc9229bf4bd04716c4cf9e79cc13ffb5 100644
--- a/chrome/browser/download/download_item.h
+++ b/chrome/browser/download/download_item.h
@@ -40,8 +40,18 @@ class DownloadItem {
public:
enum DownloadState {
IN_PROGRESS,
+
+ // Note that COMPLETE indicates that the download has gotten all of its
+ // data, has figured out its final destination file, has been entered
+ // into the history store, and has been shown in the UI. The only
+ // operations remaining are (possibly) acceptance by the user of
+ // a dangerous download, and renaming the file to the final name and
Paweł Hajdan Jr. 2011/01/17 18:13:24 nit: "and..." - is the later part of this comment
Randy Smith (Not in Mondays) 2011/01/18 22:32:46 Done.
COMPLETE,
+
CANCELLED,
+
+ // This state indicates that the download item is about to be destroyed,
+ // and observers seeing this state should release all references.
REMOVING
};
@@ -129,7 +139,7 @@ class DownloadItem {
void Cancel(bool update_history);
// Called when all data has been saved.
- void OnAllDataSaved(int64 size);
+ void OnReadyToFinish(int64 size);
// Called when the entire download operation (including renaming etc)
// is finished.
« no previous file with comments | « no previous file | chrome/browser/download/download_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698