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

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

Issue 11150027: Handle the case where IAttachmentExecute::Save() deletes a downloaded file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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: content/browser/download/download_file_manager.h
diff --git a/content/browser/download/download_file_manager.h b/content/browser/download/download_file_manager.h
index c86ca2a2962f43a87595a1dab48309a43246f072..cc5fa89db42ceb244baa39cd13935bf16030bfcb 100644
--- a/content/browser/download/download_file_manager.h
+++ b/content/browser/download/download_file_manager.h
@@ -86,6 +86,10 @@ class CONTENT_EXPORT DownloadFileManager
typedef content::DownloadFile::RenameCompletionCallback
RenameCompletionCallback;
+ // Callback used with CompleteDownload().
+ typedef content::DownloadFile::DetachCompletionCallback
+ CompleteCompletionCallback;
+
// Takes ownership of the factory.
// Passing in a NULL for |factory| will cause a default
// |DownloadFileFactory| to be used.
@@ -112,7 +116,7 @@ class CONTENT_EXPORT DownloadFileManager
// we know when we can hand the file off to other consumers.
virtual void CancelDownload(content::DownloadId id);
virtual void CompleteDownload(content::DownloadId id,
- const base::Closure& callback);
+ const CompleteCompletionCallback& callback);
// Called on FILE thread by DownloadManager at the beginning of its shutdown.
virtual void OnDownloadManagerShutdown(content::DownloadManager* manager);

Powered by Google App Engine
This is Rietveld 408576698