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

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: 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/mock_download_file.cc
diff --git a/content/browser/download/mock_download_file.cc b/content/browser/download/mock_download_file.cc
index e149707349254a24336307946ca429d1884515d3..53c39507fdc98f818d314b38729178be97b02f65 100644
--- a/content/browser/download/mock_download_file.cc
+++ b/content/browser/download/mock_download_file.cc
@@ -44,7 +44,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);
@@ -107,10 +107,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() {
}

Powered by Google App Engine
This is Rietveld 408576698