OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_FILTERS_STREAM_PARSER_FACTORY_H_ | 5 #ifndef MEDIA_FILTERS_STREAM_PARSER_FACTORY_H_ |
6 #define MEDIA_FILTERS_STREAM_PARSER_FACTORY_H_ | 6 #define MEDIA_FILTERS_STREAM_PARSER_FACTORY_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 // Creates a new StreamParser object if the specified |type| and |codecs| list | 26 // Creates a new StreamParser object if the specified |type| and |codecs| list |
27 // are supported. |media_log| can be used to report errors if there is | 27 // are supported. |media_log| can be used to report errors if there is |
28 // something wrong with |type| or the codec IDs in |codecs|. | 28 // something wrong with |type| or the codec IDs in |codecs|. |
29 // Returns a new StreamParser object if |type| and all codecs listed in | 29 // Returns a new StreamParser object if |type| and all codecs listed in |
30 // |codecs| are supported. | 30 // |codecs| are supported. |
31 // Returns NULL otherwise. | 31 // Returns NULL otherwise. |
32 static std::unique_ptr<StreamParser> Create( | 32 static std::unique_ptr<StreamParser> Create( |
33 const std::string& type, | 33 const std::string& type, |
34 const std::vector<std::string>& codecs, | 34 const std::vector<std::string>& codecs, |
35 const scoped_refptr<MediaLog>& media_log); | 35 MediaLog* media_log); |
36 }; | 36 }; |
37 | 37 |
38 } // namespace media | 38 } // namespace media |
39 | 39 |
40 #endif // MEDIA_FILTERS_STREAM_PARSER_FACTORY_H_ | 40 #endif // MEDIA_FILTERS_STREAM_PARSER_FACTORY_H_ |
OLD | NEW |