OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 // A filter factory handles the creation of filters given a FilterType (i.e., | 5 // A filter factory handles the creation of filters given a FilterType (i.e., |
6 // FILTER_AUDIO_DECODER) and a MediaFormat. Generally a filter factory handles | 6 // FILTER_AUDIO_DECODER) and a MediaFormat. Generally a filter factory handles |
7 // creating a single type of filter, with multiple factories combined into a | 7 // creating a single type of filter, with multiple factories combined into a |
8 // FilterFactoryCollection. We use some template tricks to enforce type-safety | 8 // FilterFactoryCollection. We use some template tricks to enforce type-safety |
9 // and eliminate casting for callers. | 9 // and eliminate casting for callers. |
10 // | 10 // |
11 // The majority of applications will only use FilterFactoryCollection since | 11 // The majority of applications will only use FilterFactoryCollection since |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 private: | 127 private: |
128 typedef std::vector< scoped_refptr<FilterFactory> > FactoryVector; | 128 typedef std::vector< scoped_refptr<FilterFactory> > FactoryVector; |
129 FactoryVector factories_; | 129 FactoryVector factories_; |
130 | 130 |
131 DISALLOW_COPY_AND_ASSIGN(FilterFactoryCollection); | 131 DISALLOW_COPY_AND_ASSIGN(FilterFactoryCollection); |
132 }; | 132 }; |
133 | 133 |
134 } // namespace media | 134 } // namespace media |
135 | 135 |
136 #endif // MEDIA_BASE_FACTORY_H_ | 136 #endif // MEDIA_BASE_FACTORY_H_ |
OLD | NEW |