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

Unified Diff: content/browser/download/mock_download_file.cc

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_file.h ('k') | content/browser/download/mock_download_item.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/mock_download_file.cc
diff --git a/content/browser/download/mock_download_file.cc b/content/browser/download/mock_download_file.cc
index 7042f007d1fc4f77b4645ec33abcc4d709a60bef..885def180d9cc17b8f940a0d10b807e6ddd8b414 100644
--- a/content/browser/download/mock_download_file.cc
+++ b/content/browser/download/mock_download_file.cc
@@ -46,7 +46,7 @@ MockDownloadFile::MockDownloadFile(
MockDownloadFile::~MockDownloadFile() {
}
-net::Error MockDownloadFile::Initialize(bool calculate_hash) {
+net::Error MockDownloadFile::Initialize() {
in_progress_ = true;
if (recorder_)
recorder_->Record(StatisticsRecorder::STAT_INITIALIZE);
@@ -109,10 +109,14 @@ int64 MockDownloadFile::CurrentSpeed() const {
return 0;
}
-bool MockDownloadFile::GetSha256Hash(std::string* hash) {
+bool MockDownloadFile::GetHash(std::string* hash) {
return false;
}
+std::string MockDownloadFile::GetHashState() {
+ return "";
+}
+
// DownloadFileInterface implementation.
void MockDownloadFile::CancelDownloadRequest() {
}
« no previous file with comments | « content/browser/download/mock_download_file.h ('k') | content/browser/download/mock_download_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698