Index: media/filters/stream_parser_factory.h |
diff --git a/media/filters/stream_parser_factory.h b/media/filters/stream_parser_factory.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3820e244e6d094b36e96aaa5dc5d5215c879d8e6 |
--- /dev/null |
+++ b/media/filters/stream_parser_factory.h |
@@ -0,0 +1,30 @@ |
+// Copyright (c) 2013 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. |
+ |
+#ifndef MEDIA_FILTERS_STREAM_PARSER_FACTORY_H_ |
+#define MEDIA_FILTERS_STREAM_PARSER_FACTORY_H_ |
+ |
+#include <string> |
+#include <vector> |
+ |
+#include "base/memory/scoped_ptr.h" |
+#include "media/base/media_export.h" |
+#include "media/base/media_log.h" |
+#include "media/base/stream_parser.h" |
scherkus (not reviewing)
2013/03/14 01:15:26
fwd decl instead of #include?
acolwell GONE FROM CHROMIUM
2013/03/14 18:34:34
Done.
|
+ |
+namespace media { |
+ |
+class StreamParserFactory { |
scherkus (not reviewing)
2013/03/14 01:15:26
can we MEDIA_EXPORT here instead?
acolwell GONE FROM CHROMIUM
2013/03/14 18:34:34
Done.
|
+ public: |
+ MEDIA_EXPORT static bool IsTypeSupported( |
+ const std::string& type, const std::vector<std::string>& codecs); |
+ |
+ MEDIA_EXPORT static scoped_ptr<media::StreamParser> Create( |
+ const std::string& type, const std::vector<std::string>& codecs, |
+ const media::LogCB& log_cb, bool* has_audio, bool* has_video); |
+}; |
+ |
+} // namespace media |
+ |
+#endif // MEDIA_FILTERS_STREAM_PARSER_FACTORY_H_ |