| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/ref_counted.h" | 10 #include "base/ref_counted.h" |
| 11 #include "media/base/filters.h" | 11 #include "media/base/filters.h" |
| 12 | 12 |
| 13 namespace media { | 13 namespace media { |
| 14 | 14 |
| 15 // This is a collection of Filter objects used to form a media playback | 15 // This is a collection of Filter objects used to form a media playback |
| 16 // pipeline. See src/media/base/pipeline.h for more information. | 16 // pipeline. See src/media/base/pipeline.h for more information. |
| 17 class FilterCollection { | 17 class FilterCollection { |
| 18 public: | 18 public: |
| 19 FilterCollection(); | 19 FilterCollection(); |
| 20 ~FilterCollection(); |
| 20 | 21 |
| 21 // Adds a filter to the collection. | 22 // Adds a filter to the collection. |
| 22 void AddDataSource(DataSource* filter); | 23 void AddDataSource(DataSource* filter); |
| 23 void AddDemuxer(Demuxer* filter); | 24 void AddDemuxer(Demuxer* filter); |
| 24 void AddVideoDecoder(VideoDecoder* filter); | 25 void AddVideoDecoder(VideoDecoder* filter); |
| 25 void AddAudioDecoder(AudioDecoder* filter); | 26 void AddAudioDecoder(AudioDecoder* filter); |
| 26 void AddVideoRenderer(VideoRenderer* filter); | 27 void AddVideoRenderer(VideoRenderer* filter); |
| 27 void AddAudioRenderer(AudioRenderer* filter); | 28 void AddAudioRenderer(AudioRenderer* filter); |
| 28 | 29 |
| 29 // Is the collection empty? | 30 // Is the collection empty? |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 71 |
| 71 // Helper function that searches the filters list for a specific filter type. | 72 // Helper function that searches the filters list for a specific filter type. |
| 72 void SelectFilter(FilterType filter_type, scoped_refptr<Filter>* filter_out); | 73 void SelectFilter(FilterType filter_type, scoped_refptr<Filter>* filter_out); |
| 73 | 74 |
| 74 DISALLOW_COPY_AND_ASSIGN(FilterCollection); | 75 DISALLOW_COPY_AND_ASSIGN(FilterCollection); |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace media | 78 } // namespace media |
| 78 | 79 |
| 79 #endif // MEDIA_BASE_FILTER_COLLECTION_H_ | 80 #endif // MEDIA_BASE_FILTER_COLLECTION_H_ |
| OLD | NEW |