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 |
(...skipping 27 matching lines...) Expand all Loading... |
38 // | 38 // |
39 // |filter_collection| is not modified if this method returns false. | 39 // |filter_collection| is not modified if this method returns false. |
40 bool BuildMediaSourceCollection( | 40 bool BuildMediaSourceCollection( |
41 const WebKit::WebURL& url, | 41 const WebKit::WebURL& url, |
42 const WebKit::WebURL& media_source_url, | 42 const WebKit::WebURL& media_source_url, |
43 media::ChunkDemuxerClient* client, | 43 media::ChunkDemuxerClient* client, |
44 media::MessageLoopFactory* message_loop_factory, | 44 media::MessageLoopFactory* message_loop_factory, |
45 media::FilterCollection* filter_collection, | 45 media::FilterCollection* filter_collection, |
46 scoped_refptr<media::FFmpegVideoDecoder>* video_decoder); | 46 scoped_refptr<media::FFmpegVideoDecoder>* video_decoder); |
47 | 47 |
48 // Builds the required filters for handling regular URLs, adds them to | 48 // Builds the required filters for handling regular URLs and adds them to |
49 // |filter_collection| and fills |video_decoder|. | 49 // |filter_collection| and fills |video_decoder| returning true if successful. |
50 void BuildDefaultCollection(const scoped_refptr<media::DataSource>& data_source, | 50 // |
| 51 // |local_source| refers to whether the data being fetched requires network |
| 52 // access. |
| 53 // |
| 54 // TODO(scherkus): a data source should be able to tell us this. |
| 55 void BuildDefaultCollection( |
| 56 const scoped_refptr<media::DataSource>& data_source, |
| 57 bool local_source, |
51 media::MessageLoopFactory* message_loop_factory, | 58 media::MessageLoopFactory* message_loop_factory, |
52 media::FilterCollection* filter_collection, | 59 media::FilterCollection* filter_collection, |
53 scoped_refptr<media::FFmpegVideoDecoder>* video_decoder); | 60 scoped_refptr<media::FFmpegVideoDecoder>* video_decoder); |
54 | 61 |
55 } // webkit_media | 62 } // webkit_media |
56 | 63 |
57 #endif // WEBKIT_MEDIA_FILTER_HELPERS_H_ | 64 #endif // WEBKIT_MEDIA_FILTER_HELPERS_H_ |
OLD | NEW |