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

Unified Diff: content/public/browser/download_item.h

Issue 134373003: Return error to chrome.downloads.removeFile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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
Index: content/public/browser/download_item.h
diff --git a/content/public/browser/download_item.h b/content/public/browser/download_item.h
index 5ef9597a05fd8c5c443141f1ede056f7828b7c88..f353aa9685dff4b9ba1f248f29e3251a523cf640 100644
--- a/content/public/browser/download_item.h
+++ b/content/public/browser/download_item.h
@@ -239,7 +239,7 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
// become true and DownloadItem::OnDownloadUpdated() will be called. Does
// nothing if GetState() == COMPLETE or GetFileExternallyRemoved() is already
// true.
asanka 2014/01/16 16:05:51 Can you document how the callback will be invoked?
benjhayden 2014/01/16 17:09:18 Done.
- virtual void DeleteFile() = 0;
+ virtual void DeleteFile(const base::Callback<void(bool)>& callback) = 0;
// True if the file that will be written by the download is dangerous
// and we will require a call to ValidateDangerousDownload() to complete.

Powered by Google App Engine
This is Rietveld 408576698