summaryrefslogtreecommitdiffstats
path: root/content/public/browser/download_manager_delegate.h
diff options
context:
space:
mode:
authorrdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-17 19:50:43 +0000
committerrdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-17 19:50:43 +0000
commit18710a42a7b179929473f041af63e5d1e75bd551 (patch)
treee554337f48a707180151f4c4f4d0fd443b546002 /content/public/browser/download_manager_delegate.h
parent06ea095ddbb86641d36383ba7f943888de05e747 (diff)
downloadchromium_src-18710a42a7b179929473f041af63e5d1e75bd551.zip
chromium_src-18710a42a7b179929473f041af63e5d1e75bd551.tar.gz
chromium_src-18710a42a7b179929473f041af63e5d1e75bd551.tar.bz2
Clean up last half of download flow, simplifying delegate interface, and moving more code for driving the download into DownloadItemImpl.
Review URL: https://chromiumcodereview.appspot.com/10984056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162495 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public/browser/download_manager_delegate.h')
-rw-r--r--content/public/browser/download_manager_delegate.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/content/public/browser/download_manager_delegate.h b/content/public/browser/download_manager_delegate.h
index 831d4d4..084cbb7 100644
--- a/content/public/browser/download_manager_delegate.h
+++ b/content/public/browser/download_manager_delegate.h
@@ -80,13 +80,9 @@ class CONTENT_EXPORT DownloadManagerDelegate {
virtual bool ShouldOpenFileBasedOnExtension(const FilePath& path);
// Allows the delegate to delay completion of the download. This function
- // will either return true (in which case the download is ready to complete)
- // or arrange for complete_callback to be called at some point in the future
- // when the download is ready to complete.
- //
- // ShouldCompleteDownload() may be called multiple times; if it is, only the
- // last callback specified (while the delegate is delaying completion) will be
- // run. Calls made after the callback is run are guaranteed to return true.
+ // will either return true (in which case the download may complete)
+ // or will call the callback passed when the download is ready for
+ // completion. This routine should only be called once per download.
virtual bool ShouldCompleteDownload(
DownloadItem* item,
const base::Closure& complete_callback);