summaryrefslogtreecommitdiffstats
path: root/media/mojo/services/mojo_audio_decoder_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'media/mojo/services/mojo_audio_decoder_service.h')
-rw-r--r--media/mojo/services/mojo_audio_decoder_service.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/media/mojo/services/mojo_audio_decoder_service.h b/media/mojo/services/mojo_audio_decoder_service.h
index 756e19c..558d0eb 100644
--- a/media/mojo/services/mojo_audio_decoder_service.h
+++ b/media/mojo/services/mojo_audio_decoder_service.h
@@ -11,6 +11,7 @@
#include "media/base/audio_decoder.h"
#include "media/mojo/interfaces/audio_decoder.mojom.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
+#include "mojo/public/cpp/system/data_pipe.h"
namespace media {
@@ -28,6 +29,8 @@ class MojoAudioDecoderService : public interfaces::AudioDecoder {
int32_t cdm_id,
const InitializeCallback& callback) final;
+ void SetDataSource(mojo::ScopedDataPipeConsumerHandle receive_pipe) final;
+
void Decode(interfaces::DecoderBufferPtr buffer,
const DecodeCallback& callback) final;
@@ -55,6 +58,9 @@ class MojoAudioDecoderService : public interfaces::AudioDecoder {
// communication channel, i.e. the pipe.
mojo::StrongBinding<interfaces::AudioDecoder> binding_;
+ // DataPipe for serializing the data section of DecoderBuffer.
+ mojo::ScopedDataPipeConsumerHandle consumer_handle_;
+
// The AudioDecoder that does actual decoding work.
scoped_ptr<media::AudioDecoder> decoder_;