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

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, 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_file_impl.h
diff --git a/content/browser/download/download_file_impl.h b/content/browser/download/download_file_impl.h
index 31073c5451139a7eb6ff3a649bf7bb7ed7925e51..5bb38e0a284162451030b56831e807aa6ed7def4 100644
--- a/content/browser/download/download_file_impl.h
+++ b/content/browser/download/download_file_impl.h
@@ -23,7 +23,8 @@ 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,
+ const Pickle& hash_state);
virtual ~DownloadFileImpl();
// DownloadFile functions.
@@ -39,6 +40,8 @@ class CONTENT_EXPORT DownloadFileImpl : virtual public DownloadFile {
virtual bool InProgress() const OVERRIDE;
virtual int64 BytesSoFar() const OVERRIDE;
virtual bool GetSha256Hash(std::string* hash) OVERRIDE;
+ virtual bool GetSha256HashState(Pickle* hash_state) OVERRIDE;
+ virtual bool SetSha256HashState(Pickle* hash_state) OVERRIDE;
virtual void CancelDownloadRequest() OVERRIDE;
virtual int Id() const OVERRIDE;
virtual DownloadManager* GetDownloadManager() OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698