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

Unified Diff: media/filters/stream_parser_factory.h

Issue 12713004: Add Chromium-side changes for MediaSource::isTypeSupported() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
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_

Powered by Google App Engine
This is Rietveld 408576698