Chromium Code Reviews| Index: content/browser/download/download_manager.h |
| diff --git a/content/browser/download/download_manager.h b/content/browser/download/download_manager.h |
| index 3bbd4a753924e6f0dd5c45bef5e4bbce1631f2f5..33102709d21966b4007b912f1d00e870a4aa9f51 100644 |
| --- a/content/browser/download/download_manager.h |
| +++ b/content/browser/download/download_manager.h |
| @@ -118,7 +118,8 @@ class CONTENT_EXPORT DownloadManager |
| // Notifications sent from the download thread to the UI thread |
|
Randy Smith (Not in Mondays)
2011/11/16 18:29:27
nit: Shift this to file thread? (Anywhere else yo
ahendrickson
2011/11/19 20:18:03
Done.
|
| 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. |
| @@ -134,8 +135,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 |
| @@ -344,7 +347,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 |