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

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: Incorporated Randy's comments. Created 9 years, 1 month 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 3bbd4a753924e6f0dd5c45bef5e4bbce1631f2f5..7e3c6268a21afa888be59dd30c2978281546d23f 100644
--- a/content/browser/download/download_manager.h
+++ b/content/browser/download/download_manager.h
@@ -116,9 +116,10 @@ class CONTENT_EXPORT DownloadManager
// Returns true if initialized properly.
bool Init(content::BrowserContext* browser_context);
- // Notifications sent from the download thread to the UI thread
+ // Notifications sent from the FILE 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.
@@ -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

Powered by Google App Engine
This is Rietveld 408576698