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

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

Issue 155230: Made MediaFilter::host_ and MediaFilter::message_loop_ private. (Closed)
Patch Set: Merge with ToT Created 11 years, 5 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 | « chrome/renderer/media/audio_renderer_impl.cc ('k') | media/base/filters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/media/buffered_data_source.cc
diff --git a/chrome/renderer/media/buffered_data_source.cc b/chrome/renderer/media/buffered_data_source.cc
index ef92ce1f84883b3e9e95560a94633c763ccb6261..ef987a53005fe838f9654e994740dfea1c8f350b 100644
--- a/chrome/renderer/media/buffered_data_source.cc
+++ b/chrome/renderer/media/buffered_data_source.cc
@@ -538,7 +538,7 @@ bool BufferedDataSource::Initialize(const std::string& url) {
// Make sure we support the scheme of the URL.
if (!IsSchemeSupported(url_)) {
- host_->Error(media::PIPELINE_ERROR_NETWORK);
+ host()->Error(media::PIPELINE_ERROR_NETWORK);
return false;
}
@@ -565,12 +565,12 @@ bool BufferedDataSource::Initialize(const std::string& url) {
if (resource_loader) {
if (net::ERR_IO_PENDING != resource_loader->Start(
NewCallback(this, &BufferedDataSource::InitialRequestStarted))) {
- host_->Error(media::PIPELINE_ERROR_NETWORK);
+ host()->Error(media::PIPELINE_ERROR_NETWORK);
return false;
}
return true;
}
- host_->Error(media::PIPELINE_ERROR_NETWORK);
+ host()->Error(media::PIPELINE_ERROR_NETWORK);
return false;
}
@@ -671,7 +671,7 @@ bool BufferedDataSource::IsSeekable() {
void BufferedDataSource::HandleError(media::PipelineError error) {
AutoLock auto_lock(lock_);
if (!stopped_) {
- host_->Error(error);
+ host()->Error(error);
}
}
@@ -695,13 +695,13 @@ void BufferedDataSource::OnInitialRequestStarted(int error) {
if (error == net::OK) {
total_bytes_ = buffered_resource_loader_->content_length();
if (IsSeekable()) {
- host_->SetTotalBytes(total_bytes_);
+ host()->SetTotalBytes(total_bytes_);
// TODO(hclam): report the amount of bytes buffered accurately.
- host_->SetBufferedBytes(total_bytes_);
+ host()->SetBufferedBytes(total_bytes_);
}
- host_->InitializationComplete();
+ host()->InitializationComplete();
} else {
- host_->Error(media::PIPELINE_ERROR_NETWORK);
+ host()->Error(media::PIPELINE_ERROR_NETWORK);
}
}
}
« no previous file with comments | « chrome/renderer/media/audio_renderer_impl.cc ('k') | media/base/filters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698