| 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 | 10 |
| 11 namespace media { | 11 namespace media { |
| 12 class AesDecryptor; | 12 class Decryptor; |
| 13 class ChunkDemuxerClient; | 13 class ChunkDemuxerClient; |
| 14 class DataSource; | 14 class DataSource; |
| 15 class FFmpegVideoDecoder; | 15 class FFmpegVideoDecoder; |
| 16 class FilterCollection; | 16 class FilterCollection; |
| 17 class MessageLoopFactory; | 17 class MessageLoopFactory; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace WebKit { | 20 namespace WebKit { |
| 21 class WebURL; | 21 class WebURL; |
| 22 } | 22 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 37 // Builds the required filters for handling media source URLs, adds them to | 37 // Builds the required filters for handling media source URLs, adds them to |
| 38 // |filter_collection| and fills |video_decoder| returning true if successful. | 38 // |filter_collection| and fills |video_decoder| returning true if successful. |
| 39 // | 39 // |
| 40 // |filter_collection| is not modified if this method returns false. | 40 // |filter_collection| is not modified if this method returns false. |
| 41 bool BuildMediaSourceCollection( | 41 bool BuildMediaSourceCollection( |
| 42 const WebKit::WebURL& url, | 42 const WebKit::WebURL& url, |
| 43 const WebKit::WebURL& media_source_url, | 43 const WebKit::WebURL& media_source_url, |
| 44 media::ChunkDemuxerClient* client, | 44 media::ChunkDemuxerClient* client, |
| 45 media::MessageLoopFactory* message_loop_factory, | 45 media::MessageLoopFactory* message_loop_factory, |
| 46 media::FilterCollection* filter_collection, | 46 media::FilterCollection* filter_collection, |
| 47 media::AesDecryptor* decryptor, | 47 media::Decryptor* decryptor, |
| 48 scoped_refptr<media::FFmpegVideoDecoder>* video_decoder); | 48 scoped_refptr<media::FFmpegVideoDecoder>* video_decoder); |
| 49 | 49 |
| 50 // Builds the required filters for handling regular URLs and adds them to | 50 // Builds the required filters for handling regular URLs and adds them to |
| 51 // |filter_collection| and fills |video_decoder| returning true if successful. | 51 // |filter_collection| and fills |video_decoder| returning true if successful. |
| 52 void BuildDefaultCollection( | 52 void BuildDefaultCollection( |
| 53 const scoped_refptr<media::DataSource>& data_source, | 53 const scoped_refptr<media::DataSource>& data_source, |
| 54 media::MessageLoopFactory* message_loop_factory, | 54 media::MessageLoopFactory* message_loop_factory, |
| 55 media::FilterCollection* filter_collection, | 55 media::FilterCollection* filter_collection, |
| 56 media::AesDecryptor* decryptor, | 56 media::Decryptor* decryptor, |
| 57 scoped_refptr<media::FFmpegVideoDecoder>* video_decoder); | 57 scoped_refptr<media::FFmpegVideoDecoder>* video_decoder); |
| 58 | 58 |
| 59 } // webkit_media | 59 } // webkit_media |
| 60 | 60 |
| 61 #endif // WEBKIT_MEDIA_FILTER_HELPERS_H_ | 61 #endif // WEBKIT_MEDIA_FILTER_HELPERS_H_ |
| OLD | NEW |