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

Unified Diff: media/base/filter_factories.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/base/filter_collection.cc ('k') | media/base/filter_factories.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/filter_factories.h
diff --git a/media/base/filter_factories.h b/media/base/filter_factories.h
index 7bc0c44bba910c66ab0802eeb9f4e77109a9fe9c..fd40742c5d5c343bd5b7229b3ef0b19bf218e77b 100644
--- a/media/base/filter_factories.h
+++ b/media/base/filter_factories.h
@@ -28,6 +28,24 @@ class DataSourceFactory {
virtual DataSourceFactory* Clone() const = 0;
};
+class Demuxer;
+
+// Asynchronous factory interface for building Demuxer objects.
+class DemuxerFactory {
+ public:
+ // Ownership of the Demuxer is transferred through this callback.
+ typedef Callback2<PipelineError, Demuxer*>::Type BuildCallback;
+
+ virtual ~DemuxerFactory();
+
+ // Builds a Demuxer for |url| and returns it via |callback|.
+ virtual void Build(const std::string& url, BuildCallback* callback) = 0;
+
+ // Makes a copy of this factory.
+ // NOTE: Pending requests are not cloned.
+ virtual DemuxerFactory* Clone() const = 0;
+};
+
} // namespace media
#endif // MEDIA_BASE_FILTER_FACTORIES_H_
« no previous file with comments | « media/base/filter_collection.cc ('k') | media/base/filter_factories.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698