OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_BASE_FILTER_COLLECTION_H_ | 5 #ifndef MEDIA_BASE_FILTER_COLLECTION_H_ |
6 #define MEDIA_BASE_FILTER_COLLECTION_H_ | 6 #define MEDIA_BASE_FILTER_COLLECTION_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "media/base/media_export.h" | 11 #include "media/base/media_export.h" |
12 | 12 |
13 namespace media { | 13 namespace media { |
14 | 14 |
15 class AudioDecoder; | 15 class AudioDecoder; |
16 class AudioRenderer; | 16 class AudioRenderer; |
17 class Demuxer; | 17 class Demuxer; |
18 class VideoDecoder; | 18 class VideoDecoder; |
19 class VideoRenderer; | 19 class VideoRenderer; |
20 | 20 |
21 // This is a collection of Filter objects used to form a media playback | 21 // Represents a set of uninitialized demuxer and audio/video decoders and |
22 // pipeline. See src/media/base/pipeline.h for more information. | 22 // renderers. Used to start a Pipeline object for media playback. |
| 23 // |
| 24 // TODO(scherkus): Replace FilterCollection with something sensible, see |
| 25 // http://crbug.com/110800 |
23 class MEDIA_EXPORT FilterCollection { | 26 class MEDIA_EXPORT FilterCollection { |
24 public: | 27 public: |
25 FilterCollection(); | 28 FilterCollection(); |
26 ~FilterCollection(); | 29 ~FilterCollection(); |
27 | 30 |
28 // Demuxer accessor methods. | 31 // Demuxer accessor methods. |
29 void SetDemuxer(const scoped_refptr<Demuxer>& demuxer); | 32 void SetDemuxer(const scoped_refptr<Demuxer>& demuxer); |
30 const scoped_refptr<Demuxer>& GetDemuxer(); | 33 const scoped_refptr<Demuxer>& GetDemuxer(); |
31 | 34 |
32 // Adds a filter to the collection. | 35 // Adds a filter to the collection. |
(...skipping 23 matching lines...) Expand all Loading... |
56 std::list<scoped_refptr<VideoDecoder> > video_decoders_; | 59 std::list<scoped_refptr<VideoDecoder> > video_decoders_; |
57 std::list<scoped_refptr<AudioRenderer> > audio_renderers_; | 60 std::list<scoped_refptr<AudioRenderer> > audio_renderers_; |
58 std::list<scoped_refptr<VideoRenderer> > video_renderers_; | 61 std::list<scoped_refptr<VideoRenderer> > video_renderers_; |
59 | 62 |
60 DISALLOW_COPY_AND_ASSIGN(FilterCollection); | 63 DISALLOW_COPY_AND_ASSIGN(FilterCollection); |
61 }; | 64 }; |
62 | 65 |
63 } // namespace media | 66 } // namespace media |
64 | 67 |
65 #endif // MEDIA_BASE_FILTER_COLLECTION_H_ | 68 #endif // MEDIA_BASE_FILTER_COLLECTION_H_ |
OLD | NEW |