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

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

Issue 8404049: Added member data to classes to support download resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with trunk Created 9 years 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/public/browser/download_item.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/download_manager.h
diff --git a/content/public/browser/download_manager.h b/content/public/browser/download_manager.h
index a5e31fc3a2abe022d900faded8e7c6615678b8e0..c123cc05a6d3d61528c419a8fc4896558f7c98e8 100644
--- a/content/public/browser/download_manager.h
+++ b/content/public/browser/download_manager.h
@@ -105,8 +105,10 @@ class CONTENT_EXPORT DownloadManager
// Notifications sent from the download thread to the UI thread
virtual void StartDownload(int32 id) = 0;
- virtual void UpdateDownload(int32 download_id, int64 bytes_so_far,
- int64 bytes_per_sec) = 0;
+ virtual void UpdateDownload(int32 download_id,
+ int64 bytes_so_far,
+ int64 bytes_per_sec,
+ std::string hash_state) = 0;
// |download_id| is the ID of the download.
// |size| is the number of bytes that have been downloaded.
@@ -122,8 +124,12 @@ class CONTENT_EXPORT DownloadManager
// Called when there is an error in the download.
// |download_id| is the ID of the download.
// |size| is the number of bytes that are currently downloaded.
+ // |hash_state| is the current state of the hash of the data that has been
+ // downloaded.
// |reason| is a download interrupt reason code.
- virtual void OnDownloadInterrupted(int32 download_id, int64 size,
+ virtual void OnDownloadInterrupted(int32 download_id,
+ int64 size,
+ std::string hash_state,
InterruptReason reason) = 0;
// Called when the download is renamed to its final name.
« no previous file with comments | « content/public/browser/download_item.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698