[safe-browsing] Database full hash matches like prefix match.
[chromium-blink-merge.git] / media / base / filter_collection.cc
blobda5042f327ffbcae9af1c0cf61bc0312f8d082a3
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "media/base/filter_collection.h"
7 #include "media/base/audio_renderer.h"
8 #include "media/base/demuxer.h"
9 #include "media/base/text_renderer.h"
10 #include "media/base/video_renderer.h"
12 namespace media {
14 FilterCollection::FilterCollection() : demuxer_(NULL) {}
16 FilterCollection::~FilterCollection() {}
18 void FilterCollection::SetDemuxer(Demuxer* demuxer) {
19 demuxer_ = demuxer;
22 Demuxer* FilterCollection::GetDemuxer() {
23 return demuxer_;
26 void FilterCollection::SetAudioRenderer(
27 scoped_ptr<AudioRenderer> audio_renderer) {
28 audio_renderer_ = audio_renderer.Pass();
31 scoped_ptr<AudioRenderer> FilterCollection::GetAudioRenderer() {
32 return audio_renderer_.Pass();
35 void FilterCollection::SetVideoRenderer(
36 scoped_ptr<VideoRenderer> video_renderer) {
37 video_renderer_ = video_renderer.Pass();
40 scoped_ptr<VideoRenderer> FilterCollection::GetVideoRenderer() {
41 return video_renderer_.Pass();
44 void FilterCollection::SetTextRenderer(
45 scoped_ptr<TextRenderer> text_renderer) {
46 text_renderer_ = text_renderer.Pass();
49 scoped_ptr<TextRenderer> FilterCollection::GetTextRenderer() {
50 return text_renderer_.Pass();
53 } // namespace media