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

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: 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/browser/download/download_create_info.h ('k') | content/browser/download/download_file_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 31331352b3f46cf36eb40f213798dc41c935ab8e..69a7c5ee609562a55d36c846b4a25c1868f3ee2e 100644
--- a/content/browser/download/download_file_impl.h
+++ b/content/browser/download/download_file_impl.h
@@ -27,11 +27,12 @@ class CONTENT_EXPORT DownloadFileImpl : virtual public content::DownloadFile {
// Takes ownership of the object pointed to by |request_handle|.
DownloadFileImpl(const DownloadCreateInfo* info,
DownloadRequestHandleInterface* request_handle,
- content::DownloadManager* download_manager);
+ content::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;
@@ -43,7 +44,8 @@ class CONTENT_EXPORT DownloadFileImpl : virtual public content::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 content::DownloadManager* GetDownloadManager() OVERRIDE;
« no previous file with comments | « content/browser/download/download_create_info.h ('k') | content/browser/download/download_file_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698