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

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

Issue 10831302: Download resumption - Preliminary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed content unit tests. 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_item_impl_delegate.h
diff --git a/content/browser/download/download_item_impl_delegate.h b/content/browser/download/download_item_impl_delegate.h
index 00924542af695f38979e9cc883a9ed51519d9130..a3c430845301b0a7fc7f3da77492e3b7d08e1226 100644
--- a/content/browser/download/download_item_impl_delegate.h
+++ b/content/browser/download/download_item_impl_delegate.h
@@ -7,6 +7,7 @@
#include "base/file_path.h"
#include "content/common/content_export.h"
+#include "content/public/browser/download_url_parameters.h"
class DownloadFileManager;
class DownloadItemImpl;
@@ -43,7 +44,13 @@ class CONTENT_EXPORT DownloadItemImplDelegate {
// If all pre-requisites have been met, complete download processing.
// TODO(rdsmith): Move into DownloadItem.
- virtual void MaybeCompleteDownload(DownloadItemImpl* download);
+ virtual void MaybeCompleteDownload(int32 download_id);
+
+ // Called when an interrupted download is resumed.
+ // |download_id| is the local ID of the download.
+ virtual void RestartInterruptedDownload(
+ DownloadItemImpl* download,
+ const content::DownloadUrlParameters::OnStartedCallback& callback);
// For contextual issues like language and prefs.
virtual content::BrowserContext* GetBrowserContext() const;

Powered by Google App Engine
This is Rietveld 408576698