summaryrefslogtreecommitdiffstats
path: root/content/public/browser/download_manager_delegate.h
diff options
context:
space:
mode:
authorhashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-25 07:54:16 +0000
committerhashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-25 07:54:16 +0000
commit4c544cdf3f820a2d06860b4a5af8d2559d027671 (patch)
tree8942014fbf3277f90255638c2d052390ccdfab5d /content/public/browser/download_manager_delegate.h
parent28a66e25b35a0fa95732f24c97f1a796b5f2e458 (diff)
downloadchromium_src-4c544cdf3f820a2d06860b4a5af8d2559d027671.zip
chromium_src-4c544cdf3f820a2d06860b4a5af8d2559d027671.tar.gz
chromium_src-4c544cdf3f820a2d06860b4a5af8d2559d027671.tar.bz2
download: Delegate file removal check to DownloadManagerDelegate
file_util::PathExists is inappropriate for drive downloads, ChromeDownloadManagerDelegate will implement correct handler for them. BUG=154713 TEST=git try Review URL: https://chromiumcodereview.appspot.com/12039018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178778 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public/browser/download_manager_delegate.h')
-rw-r--r--content/public/browser/download_manager_delegate.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/content/public/browser/download_manager_delegate.h b/content/public/browser/download_manager_delegate.h
index add75c4..8760321 100644
--- a/content/public/browser/download_manager_delegate.h
+++ b/content/public/browser/download_manager_delegate.h
@@ -49,6 +49,9 @@ typedef base::Callback<void(
// Called when a download delayed by the delegate has completed.
typedef base::Callback<void(bool)> DownloadOpenDelayedCallback;
+// Called with the reuslt of CheckForFileExistence().
+typedef base::Callback<void(bool result)> CheckForFileExistenceCallback;
+
// Browser's download manager: manages all downloads and destination view.
class CONTENT_EXPORT DownloadManagerDelegate {
public:
@@ -123,6 +126,11 @@ class CONTENT_EXPORT DownloadManagerDelegate {
// Shows the download via the OS shell.
virtual void ShowDownloadInShell(DownloadItem* download) {}
+ // Checks whether a downloaded file still exists.
+ virtual void CheckForFileExistence(
+ DownloadItem* download,
+ const CheckForFileExistenceCallback& callback) {}
+
protected:
virtual ~DownloadManagerDelegate();
};