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

Unified Diff: content/browser/download/download_file.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.h
diff --git a/content/browser/download/download_file.h b/content/browser/download/download_file.h
index b6c69090bd6e1ef5423e4fbf69c3ace1767c6232..455fdad073cdad698bb4a299475efcca87041ae3 100644
--- a/content/browser/download/download_file.h
+++ b/content/browser/download/download_file.h
@@ -26,7 +26,7 @@ class CONTENT_EXPORT DownloadFile {
// If calculate_hash is true, sha256 hash will be calculated.
// Returns net::OK on success, or a network error code on failure.
- virtual net::Error Initialize(bool calculate_hash) = 0;
+ virtual net::Error Initialize() = 0;
// Write a new chunk of data to the file.
// Returns net::OK on success (all bytes written to the file),
@@ -56,7 +56,10 @@ class CONTENT_EXPORT DownloadFile {
// Set |hash| with sha256 digest for the file.
// Returns true if digest is successfully calculated.
- virtual bool GetSha256Hash(std::string* hash) = 0;
+ virtual bool GetHash(std::string* hash) = 0;
+
+ // Returns the current (intermediate) state of the hash as a byte string.
+ virtual std::string GetHashState() = 0;
// Cancels the download request associated with this file.
virtual void CancelDownloadRequest() = 0;

Powered by Google App Engine
This is Rietveld 408576698