Chromium Code Reviews| Index: content/browser/download/download_file.h |
| diff --git a/content/browser/download/download_file.h b/content/browser/download/download_file.h |
| index dbba1ddd3c0975445c27f4c4a5a359b52ede48f6..08aa3db662231e6f307d8b540a1518e01e4196b2 100644 |
| --- a/content/browser/download/download_file.h |
| +++ b/content/browser/download/download_file.h |
| @@ -57,6 +57,12 @@ class CONTENT_EXPORT DownloadFile { |
| // Returns true if digest is successfully calculated. |
| virtual bool GetSha256Hash(std::string* hash) = 0; |
| + // Returns the current (intermediate) state of the hash as a byte string. |
| + virtual std::string GetSha256HashState() = 0; |
| + |
| + // Resets the current state of the hash to the contents of |hash_state|. |
| + virtual bool SetSha256HashState(const std::string& hash_state) = 0; |
|
Randy Smith (Not in Mondays)
2011/11/22 17:37:49
Same comment as in base file; can we get rid of th
ahendrickson
2011/11/22 23:46:44
This one we can get rid of.
Done.
|
| + |
| // Cancels the download request associated with this file. |
| virtual void CancelDownloadRequest() = 0; |