OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Implements the DemuxerFactory interface using FFmpegDemuxer. |
| 6 |
| 7 #ifndef MEDIA_FILTERS_FFMPEG_DEMUXER_FACTORY_H_ |
| 8 #define MEDIA_FILTERS_FFMPEG_DEMUXER_FACTORY_H_ |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 #include "base/scoped_ptr.h" |
| 12 #include "media/base/filter_factories.h" |
| 13 |
| 14 class MessageLoop; |
| 15 |
| 16 namespace media { |
| 17 |
| 18 class FFmpegDemuxerFactory : public DemuxerFactory { |
| 19 public: |
| 20 // Takes ownership of |data_source_factory|, but not of |loop|. |
| 21 FFmpegDemuxerFactory(DataSourceFactory* data_source_factory, |
| 22 MessageLoop* loop); |
| 23 virtual ~FFmpegDemuxerFactory(); |
| 24 |
| 25 virtual void Build(const std::string& url, BuildCallback* cb); |
| 26 virtual DemuxerFactory* Clone() const; |
| 27 |
| 28 private: |
| 29 scoped_ptr<DataSourceFactory> data_source_factory_; |
| 30 MessageLoop* loop_; // Unowned. |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxerFactory); |
| 33 }; |
| 34 |
| 35 } // namespace media |
| 36 |
| 37 #endif // MEDIA_FILTERS_FFMPEG_DEMUXER_FACTORY_H_ |
OLD | NEW |