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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_demuxer_factory.h
diff --git a/media/filters/ffmpeg_demuxer_factory.h b/media/filters/ffmpeg_demuxer_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..8bc3d0dabe4e6230fbbe00db82d90f236dfe3120
--- /dev/null
+++ b/media/filters/ffmpeg_demuxer_factory.h
@@ -0,0 +1,37 @@
+// 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/scoped_ptr.h"
+#include "media/base/filter_factories.h"
+
+class MessageLoop;
+
+namespace media {
+
+class FFmpegDemuxerFactory : public DemuxerFactory {
+ public:
+ // Takes ownership of |data_source_factory|, but not of |loop|.
+ FFmpegDemuxerFactory(DataSourceFactory* data_source_factory,
+ MessageLoop* loop);
+ virtual ~FFmpegDemuxerFactory();
+
+ virtual void Build(const std::string& url, BuildCallback* cb);
+ virtual DemuxerFactory* Clone() const;
+
+ private:
+ scoped_ptr<DataSourceFactory> data_source_factory_;
+ MessageLoop* loop_; // Unowned.
+
+ DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxerFactory);
+};
+
+} // namespace media
+
+#endif // MEDIA_FILTERS_FFMPEG_DEMUXER_FACTORY_H_
« 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