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

Unified Diff: webkit/media/buffered_data_source.cc

Issue 8936014: Removing DataSource from Filter hierarchy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build busters 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: webkit/media/buffered_data_source.cc
diff --git a/webkit/media/buffered_data_source.cc b/webkit/media/buffered_data_source.cc
index 8a5feba88a9915ec21d5ca304d67478b3302c3fb..987115da992e223b9b33c7f94324f8afb2e88eb1 100644
--- a/webkit/media/buffered_data_source.cc
+++ b/webkit/media/buffered_data_source.cc
@@ -5,7 +5,6 @@
#include "webkit/media/buffered_data_source.h"
#include "base/bind.h"
-#include "media/base/filter_host.h"
#include "media/base/media_log.h"
#include "net/base/net_errors.h"
#include "webkit/media/web_data_source_factory.h"
@@ -85,7 +84,7 @@ BufferedResourceLoader* BufferedDataSource::CreateResourceLoader(
media_log_);
}
-void BufferedDataSource::set_host(media::FilterHost* host) {
+void BufferedDataSource::set_host(media::DataSourceHost* host) {
DataSource::set_host(host);
if (loader_.get()) {
@@ -650,13 +649,13 @@ void BufferedDataSource::UpdateHostState_Locked() {
// Called from various threads, under lock.
lock_.AssertAcquired();
- media::FilterHost* filter_host = host();
- if (!filter_host)
+ media::DataSourceHost* data_source_host = host();
Ami GONE FROM CHROMIUM 2011/12/15 18:39:08 I realize the diff here is mechanical, but you mig
acolwell GONE FROM CHROMIUM 2011/12/15 20:57:59 Done.
+ if (!data_source_host)
return;
if (total_bytes_ != kPositionNotSpecified)
- filter_host->SetTotalBytes(total_bytes_);
- filter_host->SetBufferedBytes(buffered_bytes_);
+ data_source_host->SetTotalBytes(total_bytes_);
+ data_source_host->SetBufferedBytes(buffered_bytes_);
}
} // namespace webkit_media

Powered by Google App Engine
This is Rietveld 408576698