summaryrefslogtreecommitdiffstats
path: root/content/browser/download/download_file_impl.cc
diff options
context:
space:
mode:
authorbenwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-30 06:37:20 +0000
committerbenwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-30 06:37:20 +0000
commite384fd8b3eaa3044dcbd60abc529f4b9711d89bf (patch)
treec22facc3dd9a5cbde57d72691208738f7dcaca7e /content/browser/download/download_file_impl.cc
parent64d5c30d9869c2ab4781a7728f12498e19a5cfb8 (diff)
downloadchromium_src-e384fd8b3eaa3044dcbd60abc529f4b9711d89bf.zip
chromium_src-e384fd8b3eaa3044dcbd60abc529f4b9711d89bf.tar.gz
chromium_src-e384fd8b3eaa3044dcbd60abc529f4b9711d89bf.tar.bz2
Move download speed calculation to file thread / DownloadFile class.
This change doesn't change the way the calculation is performed but moves it to the file thread, in preperation for implementing a different speed calculation method. BUG=None TEST=Manually tested; automated tests needed. Review URL: http://codereview.chromium.org/8595004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112152 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/download/download_file_impl.cc')
-rw-r--r--content/browser/download/download_file_impl.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/content/browser/download/download_file_impl.cc b/content/browser/download/download_file_impl.cc
index f998432..0243d78 100644
--- a/content/browser/download/download_file_impl.cc
+++ b/content/browser/download/download_file_impl.cc
@@ -74,6 +74,10 @@ int64 DownloadFileImpl::BytesSoFar() const {
return file_.bytes_so_far();
}
+int64 DownloadFileImpl::CurrentSpeed() const {
+ return file_.CurrentSpeed();
+}
+
bool DownloadFileImpl::GetSha256Hash(std::string* hash) {
return file_.GetSha256Hash(hash);
}