summaryrefslogtreecommitdiffstats
path: root/media/base/pipeline_impl.h
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-17 23:33:20 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-17 23:33:20 +0000
commit8621715ceeb4533aca1d27d639cd2e47c33cd961 (patch)
treed9e12a545a5191abacb76a48b02600f3a890d627 /media/base/pipeline_impl.h
parenta9d8d382fab207a4216e1789a2635521b7b53389 (diff)
downloadchromium_src-8621715ceeb4533aca1d27d639cd2e47c33cd961.zip
chromium_src-8621715ceeb4533aca1d27d639cd2e47c33cd961.tar.gz
chromium_src-8621715ceeb4533aca1d27d639cd2e47c33cd961.tar.bz2
Refactoring in media::PipelineImpl and media::MediaFilter.
A hack in media::PipelineImpl::BroadcastMessageTask() was previously required to remove the mime_type of the disabled renderer. Since the only use of media::PipelineImpl::BroadcastMessage() is to disable the audio renderer, refactor BroadcastMessage() to DisableAudioRenderer() and refactor media::MediaFilter::OnReceivedMessage() to OnAudioRendererDisabled(). Patch by boliu@google.com: http://codereview.chromium.org/2042014/show BUG=19384 TEST=media_unittests Review URL: http://codereview.chromium.org/2069006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47472 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/pipeline_impl.h')
-rw-r--r--media/base/pipeline_impl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/media/base/pipeline_impl.h b/media/base/pipeline_impl.h
index a1ca141..27ce43f 100644
--- a/media/base/pipeline_impl.h
+++ b/media/base/pipeline_impl.h
@@ -152,7 +152,7 @@ class PipelineImpl : public Pipeline, public FilterHost {
virtual void SetLoaded(bool loaded);
virtual void SetNetworkActivity(bool network_activity);
virtual void NotifyEnded();
- virtual void BroadcastMessage(FilterMessage message);
+ virtual void DisableAudioRenderer();
// Method called during initialization to insert a mime type into the
// |rendered_mime_types_| set.
@@ -203,8 +203,8 @@ class PipelineImpl : public Pipeline, public FilterHost {
// Carries out handling a notification of network event.
void NotifyNetworkEventTask();
- // Carries out message broadcasting on the message loop.
- void BroadcastMessageTask(FilterMessage message);
+ // Carries out disabling the audio renderer.
+ void DisableAudioRendererTask();
// Carries out advancing to the next filter during Play()/Pause()/Seek().
void FilterStateTransitionTask();