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