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

Unified Diff: chrome/renderer/media/data_source_impl.cc

Issue 100131: Finished implementing seeking in WebMediaPlayerDelegateImpl. (Closed)
Patch Set: Typo Created 11 years, 8 months 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 | « no previous file | chrome/renderer/webmediaplayer_delegate_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/media/data_source_impl.cc
diff --git a/chrome/renderer/media/data_source_impl.cc b/chrome/renderer/media/data_source_impl.cc
index db4f42c427717e20e7957aa25e43f967de8dab6d..68539e8d9212c9f7985f6e151c8e8e45dd652b82 100644
--- a/chrome/renderer/media/data_source_impl.cc
+++ b/chrome/renderer/media/data_source_impl.cc
@@ -263,6 +263,7 @@ void DataSourceImpl::OnDownloadProgress(uint64 position, uint64 size) {
}
}
}
+ host_->SetBufferedBytes(downloaded_bytes_);
download_event_.Signal();
}
@@ -289,6 +290,7 @@ void DataSourceImpl::OnReceivedResponse(
if (info.content_length != -1) {
total_bytes_known_ = true;
total_bytes_ = info.content_length;
+ host_->SetTotalBytes(total_bytes_);
}
{
« no previous file with comments | « no previous file | chrome/renderer/webmediaplayer_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698