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

Unified Diff: content/browser/download/save_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: 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/mock_download_manager.cc ('k') | content/browser/download/save_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/save_file.h
diff --git a/content/browser/download/save_file.h b/content/browser/download/save_file.h
index baa863d3540bd8f9a62f7b10bee2eb31d8a42a3b..9f3710fe555e6ea95173ee6e1814c0dc396d7519 100644
--- a/content/browser/download/save_file.h
+++ b/content/browser/download/save_file.h
@@ -21,11 +21,11 @@
// in a save session.
class SaveFile {
public:
- explicit SaveFile(const SaveFileCreateInfo* info);
+ explicit SaveFile(const SaveFileCreateInfo* info, bool calculate_hash);
virtual ~SaveFile();
// BaseFile delegated functions.
- net::Error Initialize(bool calculate_hash);
+ net::Error Initialize();
net::Error AppendDataToFile(const char* data, size_t data_len);
net::Error Rename(const FilePath& full_path);
void Detach();
@@ -35,7 +35,7 @@ class SaveFile {
FilePath FullPath() const;
bool InProgress() const;
int64 BytesSoFar() const;
- bool GetSha256Hash(std::string* hash);
+ bool GetHash(std::string* hash);
std::string DebugString() const;
// Accessors.
« no previous file with comments | « content/browser/download/mock_download_manager.cc ('k') | content/browser/download/save_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698