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

Unified Diff: content/browser/download/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, 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_manager.h
diff --git a/content/browser/download/download_manager.h b/content/browser/download/download_manager.h
index d727798638fe6d6ae339dc9b95efb26036529c7b..2e484ce6a411f61b00926a40d31f44907234c566 100644
--- a/content/browser/download/download_manager.h
+++ b/content/browser/download/download_manager.h
@@ -134,7 +134,8 @@ class CONTENT_EXPORT DownloadManager
// Notifications sent from the download thread to the UI thread
void StartDownload(int32 id);
- void UpdateDownload(int32 download_id, int64 size);
+ void UpdateDownload(int32 download_id, int64 size,
+ const std::string& partial_hash);
// |download_id| is the ID of the download.
// |size| is the number of bytes that have been downloaded.
@@ -150,8 +151,10 @@ 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.
+ // |partial_hash| is the current hash of the data that has been downloaded.
// |reason| is a download interrupt reason code.
void OnDownloadInterrupted(int32 download_id, int64 size,
+ const std::string partial_hash,
InterruptReason reason);
// Called from DownloadItem to handle the DownloadManager portion of a
@@ -362,7 +365,7 @@ class CONTENT_EXPORT DownloadManager
// Called when a download entry is committed to the persistent store.
void OnDownloadItemAddedToPersistentStore(int32 download_id, int64 db_handle);
- // Called when Save Page As entry is commited to the persistent store.
+ // Called when Save Page As entry is committed to the persistent store.
void OnSavePageItemAddedToPersistentStore(int32 download_id, int64 db_handle);
// |downloads_| is the owning set for all downloads known to the

Powered by Google App Engine
This is Rietveld 408576698