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

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

Issue 8404049: Added member data to classes to support download resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated comment. 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
Index: content/browser/download/download_file_impl.h
diff --git a/content/browser/download/download_file_impl.h b/content/browser/download/download_file_impl.h
index e513e7dbf4f184d52fa79e43b14aab2efce2200d..3bdcf02b7c6fb136178e0c67efb6c16b4cc742f5 100644
--- a/content/browser/download/download_file_impl.h
+++ b/content/browser/download/download_file_impl.h
@@ -23,11 +23,12 @@ class CONTENT_EXPORT DownloadFileImpl : virtual public DownloadFile {
// Takes ownership of the object pointed to by |request_handle|.
DownloadFileImpl(const DownloadCreateInfo* info,
DownloadRequestHandleInterface* request_handle,
- DownloadManager* download_manager);
+ DownloadManager* download_manager,
+ bool calculate_hash);
virtual ~DownloadFileImpl();
// DownloadFile functions.
- virtual net::Error Initialize(bool calculate_hash) OVERRIDE;
+ virtual net::Error Initialize() OVERRIDE;
virtual net::Error AppendDataToFile(const char* data,
size_t data_len) OVERRIDE;
virtual net::Error Rename(const FilePath& full_path) OVERRIDE;
@@ -39,7 +40,8 @@ class CONTENT_EXPORT DownloadFileImpl : virtual public DownloadFile {
virtual bool InProgress() const OVERRIDE;
virtual int64 BytesSoFar() const OVERRIDE;
virtual int64 CurrentSpeed() const OVERRIDE;
- virtual bool GetSha256Hash(std::string* hash) OVERRIDE;
+ virtual bool GetHash(std::string* hash) OVERRIDE;
+ virtual std::string GetHashState() OVERRIDE;
virtual void CancelDownloadRequest() OVERRIDE;
virtual int Id() const OVERRIDE;
virtual DownloadManager* GetDownloadManager() OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698