Chromium Code Reviews| 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 FilterHost; | |
| 15 class MessageLoop; | |
| 16 | |
| 17 namespace media { | |
| 18 | |
| 19 class FFmpegDemuxerFactory : public DemuxerFactory { | |
| 20 public: | |
| 21 // Takes ownership of |data_source_factory|, but not of |loop| or |host|. | |
| 22 FFmpegDemuxerFactory(DataSourceFactory* data_source_factory, | |
| 23 MessageLoop* loop, | |
| 24 FilterHost* host); | |
| 25 virtual ~FFmpegDemuxerFactory(); | |
| 26 | |
| 27 virtual void Build(const std::string& url, BuildCallback* cb); | |
| 28 virtual DemuxerFactory* Clone() const; | |
| 29 | |
| 30 private: | |
| 31 scoped_ptr<DataSourceFactory> data_source_factory_; | |
| 32 MessageLoop* loop_; // Unowned. | |
| 33 FilterHost* host_; // Unowned. | |
|
acolwell GONE FROM CHROMIUM
2011/03/08 21:48:09
Remove? I don't see it being used.
Ami GONE FROM CHROMIUM
2011/03/08 22:44:48
It used to be (before the set_host() shenaniganery
| |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxerFactory); | |
| 36 }; | |
| 37 | |
| 38 } // namespace media | |
| 39 | |
| 40 #endif // MEDIA_FILTERS_FFMPEG_DEMUXER_FACTORY_H_ | |
| OLD | NEW |