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

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

Issue 6096003: Put history insertion for downloads processing inline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated latest round of comments. Created 9 years, 12 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
Index: chrome/browser/download/download_manager.h
diff --git a/chrome/browser/download/download_manager.h b/chrome/browser/download/download_manager.h
index 4f5ebcfb1cbcb6722f35c05b30642787927fb08e..a6e5543be43b1790bf73165fac0d473a01b1f3af 100644
--- a/chrome/browser/download/download_manager.h
+++ b/chrome/browser/download/download_manager.h
@@ -125,6 +125,17 @@ class DownloadManager
void PauseDownload(int32 download_id, bool pause);
void RemoveDownload(int64 download_handle);
+ // Determine if the download is ready for completion, i.e. has had
+ // all data received, and completed the filename determination and
+ // history insertion.
+ bool DownloadReadyForCompletion(int32 download_id);
Paweł Hajdan Jr. 2011/01/05 07:46:30 nit: Can we rename it to IsDownloadReadyForComplet
Randy Smith (Not in Mondays) 2011/01/13 02:13:24 Changed to IsDownloadReadyForCompletion() (IsDownl
+
+ // If all pre-requisites have been met, complete download processing, i.e.
+ // do internal cleanup, file rename, and potentially auto-open.
+ // (Dangerous downloads still may block on user acceptance after this
+ // point.)
+ void MaybeCompleteDownload(int32 download_id, int64 size);
+
// Called when the download is renamed to its final name.
void DownloadRenamedToFinalName(int download_id, const FilePath& full_path);

Powered by Google App Engine
This is Rietveld 408576698