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 WEBKIT_MEDIA_FILTER_HELPERS_H_ | 5 #ifndef WEBKIT_MEDIA_FILTER_HELPERS_H_ |
6 #define WEBKIT_MEDIA_FILTER_HELPERS_H_ | 6 #define WEBKIT_MEDIA_FILTER_HELPERS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 // TODO(fgalligan): Remove the dependency on FFmpeg. |
| 11 #include "media/filters/ffmpeg_demuxer.h" |
10 | 12 |
11 namespace base { | 13 namespace base { |
12 class MessageLoopProxy; | 14 class MessageLoopProxy; |
13 } | 15 } |
14 | 16 |
15 namespace media { | 17 namespace media { |
16 class ChunkDemuxer; | 18 class ChunkDemuxer; |
17 class DataSource; | 19 class DataSource; |
18 class FFmpegVideoDecoder; | 20 class FFmpegVideoDecoder; |
19 class FilterCollection; | 21 class FilterCollection; |
20 } | 22 } |
21 | 23 |
22 namespace webkit_media { | 24 namespace webkit_media { |
23 | 25 |
24 // Builds the required filters for handling media source URLs, adds them to | 26 // Builds the required filters for handling media source URLs, adds them to |
25 // |filter_collection|. | 27 // |filter_collection|. |
26 void BuildMediaSourceCollection( | 28 void BuildMediaSourceCollection( |
27 const scoped_refptr<media::ChunkDemuxer>& demuxer, | 29 const scoped_refptr<media::ChunkDemuxer>& demuxer, |
28 const scoped_refptr<base::MessageLoopProxy>& message_loop, | 30 const scoped_refptr<base::MessageLoopProxy>& message_loop, |
29 media::FilterCollection* filter_collection); | 31 media::FilterCollection* filter_collection); |
30 | 32 |
31 // Builds the required filters for handling regular URLs and adds them to | 33 // Builds the required filters for handling regular URLs and adds them to |
32 // |filter_collection| and fills |video_decoder| returning true if successful. | 34 // |filter_collection| and fills |video_decoder| returning true if successful. |
33 void BuildDefaultCollection( | 35 void BuildDefaultCollection( |
34 const scoped_refptr<media::DataSource>& data_source, | 36 const scoped_refptr<media::DataSource>& data_source, |
35 const scoped_refptr<base::MessageLoopProxy>& message_loop, | 37 const scoped_refptr<base::MessageLoopProxy>& message_loop, |
36 media::FilterCollection* filter_collection); | 38 media::FilterCollection* filter_collection, |
| 39 const media::FFmpegNeedKeyCB& need_key_cb); |
37 | 40 |
38 } // webkit_media | 41 } // webkit_media |
39 | 42 |
40 #endif // WEBKIT_MEDIA_FILTER_HELPERS_H_ | 43 #endif // WEBKIT_MEDIA_FILTER_HELPERS_H_ |
OLD | NEW |