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

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: Created 10 years 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..43b1049fd5898d873a562672aa363f3a658ce5fc 100644
--- a/chrome/browser/download/download_manager.h
+++ b/chrome/browser/download/download_manager.h
@@ -125,6 +125,12 @@ class DownloadManager
void PauseDownload(int32 download_id, bool pause);
void RemoveDownload(int64 download_handle);
+ // Complete the non-racing portion of the download after
+ // all UI initialization had occurred and all data has
+ // arrived. Called from locations where it is possible
+ // those conditions may apply.
+ void MaybeCompleteDownload(int32 download_id, int64 size);
Paweł Hajdan Jr. 2011/01/03 09:43:03 Can we find a more descriptive name, i.e. one that
Randy Smith (Not in Mondays) 2011/01/04 19:29:21 Hmmm. My call would be that MaybeCompleteDownload
+
// 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