diff options
author | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-17 23:33:20 +0000 |
---|---|---|
committer | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-17 23:33:20 +0000 |
commit | 8621715ceeb4533aca1d27d639cd2e47c33cd961 (patch) | |
tree | d9e12a545a5191abacb76a48b02600f3a890d627 /media/base/filter_host.h | |
parent | a9d8d382fab207a4216e1789a2635521b7b53389 (diff) | |
download | chromium_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/filter_host.h')
-rw-r--r-- | media/base/filter_host.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/media/base/filter_host.h b/media/base/filter_host.h index 0d9af0f..e90096f 100644 --- a/media/base/filter_host.h +++ b/media/base/filter_host.h @@ -1,4 +1,4 @@ -// Copyright (c) 2008-2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -70,8 +70,9 @@ class FilterHost { // Sets the flag to indicate current network activity. virtual void SetNetworkActivity(bool network_activity) = 0; - // Broadcast a message of type |message| to all filters. - virtual void BroadcastMessage(FilterMessage message) = 0; + // Disable audio renderer by calling OnAudioRendererDisabled() on all + // filters. + virtual void DisableAudioRenderer() = 0; protected: virtual ~FilterHost() {} |