Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(619)

Side by Side Diff: media/filters/ffmpeg_demuxer_factory.h

Issue 6648004: DemuxerFactory is born! (Closed)
Patch Set: Responses to scherkus@ CR Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/filters/ffmpeg_demuxer.cc ('k') | media/filters/ffmpeg_demuxer_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « media/filters/ffmpeg_demuxer.cc ('k') | media/filters/ffmpeg_demuxer_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698