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

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

Issue 2643743002: Mojify demuxers and allow running {Chunk/FFmpeg}Demuxer in a Utility Process (Closed)
Patch Set: Rebase and make sure to unbind mojom::DemuxerPtr on the bound thread during termination Created 3 years, 10 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/common/BUILD.gn ('k') | media/mojo/common/media_type_converters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/common/media_type_converters.h
diff --git a/media/mojo/common/media_type_converters.h b/media/mojo/common/media_type_converters.h
index 5ac927033041fcbb82531e6256353108288e370a..2598765199b6e79b628bf3ce1a042b742ef12e2f 100644
--- a/media/mojo/common/media_type_converters.h
+++ b/media/mojo/common/media_type_converters.h
@@ -16,9 +16,13 @@ namespace media {
class AudioBuffer;
class AudioBus;
class AudioDecoderConfig;
+class DataBuffer;
class DecoderBuffer;
class DecryptConfig;
class EncryptionScheme;
+class MediaTracks;
+template <class T>
+class Ranges;
class VideoDecoderConfig;
class VideoFrame;
struct CdmConfig;
@@ -55,6 +59,43 @@ struct TypeConverter<std::unique_ptr<media::DecryptConfig>,
};
template <>
+struct TypeConverter<media::mojom::MediaTracksPtr, media::MediaTracks> {
+ static media::mojom::MediaTracksPtr Convert(const media::MediaTracks& input);
+};
+template <>
+struct TypeConverter<std::unique_ptr<media::MediaTracks>,
+ media::mojom::MediaTracksPtr> {
+ static std::unique_ptr<media::MediaTracks> Convert(
+ const media::mojom::MediaTracksPtr& input);
+};
+
+template <>
+struct TypeConverter<media::mojom::RangesTimeDeltaPtr,
+ media::Ranges<base::TimeDelta>> {
+ static media::mojom::RangesTimeDeltaPtr Convert(
+ const media::Ranges<base::TimeDelta>& input);
+};
+template <>
+struct TypeConverter<media::Ranges<base::TimeDelta>,
+ media::mojom::RangesTimeDeltaPtr> {
+ static media::Ranges<base::TimeDelta> Convert(
+ const media::mojom::RangesTimeDeltaPtr& input);
+};
+
+template <>
+struct TypeConverter<media::mojom::DataBufferPtr,
+ scoped_refptr<media::DataBuffer>> {
+ static media::mojom::DataBufferPtr Convert(
+ const scoped_refptr<media::DataBuffer>& input);
+};
+template <>
+struct TypeConverter<scoped_refptr<media::DataBuffer>,
+ media::mojom::DataBufferPtr> {
+ static scoped_refptr<media::DataBuffer> Convert(
+ const media::mojom::DataBufferPtr& input);
+};
+
+template <>
struct TypeConverter<media::mojom::DecoderBufferPtr,
scoped_refptr<media::DecoderBuffer>> {
static media::mojom::DecoderBufferPtr Convert(
« no previous file with comments | « media/mojo/common/BUILD.gn ('k') | media/mojo/common/media_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698