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

Unified Diff: content/browser/download/base_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: Cleanup, and added fields to DownloadPersistentStoreInfo. 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/base_file.h
diff --git a/content/browser/download/base_file.h b/content/browser/download/base_file.h
index 8fbcdd0a9d1f79b0d868a5ec91e2b1db7ffb4330..dacf975b0906a71dea0d02ea556093087b2a1206 100644
--- a/content/browser/download/base_file.h
+++ b/content/browser/download/base_file.h
@@ -32,6 +32,7 @@ class CONTENT_EXPORT BaseFile {
const GURL& source_url,
const GURL& referrer_url,
int64 received_bytes,
+ const std::string& initial_hash,
Randy Smith (Not in Mondays) 2011/11/16 18:29:27 In the cases in which we specify an initial_hash,
ahendrickson 2011/11/19 20:18:03 Those are already here. file_stream will be used
Randy Smith (Not in Mondays) 2011/11/21 02:10:16 file_stream is fairly often not set; are you makin
ahendrickson 2011/11/21 20:34:46 My mistake; the file is specified in full_path, no
const linked_ptr<net::FileStream>& file_stream);
virtual ~BaseFile();
@@ -64,7 +65,7 @@ class CONTENT_EXPORT BaseFile {
bool in_progress() const { return file_stream_ != NULL; }
int64 bytes_so_far() const { return bytes_so_far_; }
- // Set |hash| with sha256 digest for the file.
+ // Gets |hash| with sha256 digest for the file. May be partial.
// Returns true if digest is successfully calculated.
virtual bool GetSha256Hash(std::string* hash);

Powered by Google App Engine
This is Rietveld 408576698