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

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

Issue 16924017: A few minor changes to the chrome.downloads extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: @r214130 Created 7 years, 5 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 | « content/browser/download/download_item_impl.cc ('k') | content/public/test/mock_download_item.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/download_item.h
diff --git a/content/public/browser/download_item.h b/content/public/browser/download_item.h
index ec29c94465f6a2416413c7fc6722ed49d916d77c..5ef9597a05fd8c5c443141f1ede056f7828b7c88 100644
--- a/content/public/browser/download_item.h
+++ b/content/public/browser/download_item.h
@@ -235,6 +235,12 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
// external action.
virtual bool GetFileExternallyRemoved() const = 0;
+ // If the file is successfully deleted, then GetFileExternallyRemoved() will
+ // become true and DownloadItem::OnDownloadUpdated() will be called. Does
+ // nothing if GetState() == COMPLETE or GetFileExternallyRemoved() is already
+ // true.
+ virtual void DeleteFile() = 0;
+
// True if the file that will be written by the download is dangerous
// and we will require a call to ValidateDangerousDownload() to complete.
// False if the download is safe or that function has been called.
« no previous file with comments | « content/browser/download/download_item_impl.cc ('k') | content/public/test/mock_download_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698