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

Unified Diff: media/mojo/services/media_type_converters.h

Issue 491733004: media: add basic MediaRenderer mojom and TypeConverters (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add max_time Created 6 years, 3 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/mojo/services/BUILD.gn ('k') | media/mojo/services/media_type_converters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/media_type_converters.h
diff --git a/media/mojo/services/media_type_converters.h b/media/mojo/services/media_type_converters.h
new file mode 100644
index 0000000000000000000000000000000000000000..f04e200bdfee333fe862fa2f78ab9c26e9678e78
--- /dev/null
+++ b/media/mojo/services/media_type_converters.h
@@ -0,0 +1,32 @@
+// Copyright 2014 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_MOJO_SERVICES_MEDIA_TYPE_CONVERTERS_H_
+#define MEDIA_MOJO_SERVICES_MEDIA_TYPE_CONVERTERS_H_
+
+#include "base/memory/ref_counted.h"
+#include "media/mojo/interfaces/media_types.mojom.h"
+
+namespace media {
+class DecoderBuffer;
+}
+
+namespace mojo {
+
+template <>
+struct TypeConverter<MediaDecoderBufferPtr,
+ scoped_refptr<media::DecoderBuffer> > {
+ static MediaDecoderBufferPtr Convert(
+ const scoped_refptr<media::DecoderBuffer>& input);
+};
+template<>
+struct TypeConverter<scoped_refptr<media::DecoderBuffer>,
+ MediaDecoderBufferPtr> {
+ static scoped_refptr<media::DecoderBuffer> Convert(
+ const MediaDecoderBufferPtr& input);
+};
+
+} // namespace mojo
+
+#endif // MEDIA_MOJO_SERVICES_MEDIA_TYPE_CONVERTERS_H_
« no previous file with comments | « media/mojo/services/BUILD.gn ('k') | media/mojo/services/media_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698