Index: media/mojo/services/mojo_audio_decoder_service.h |
diff --git a/media/mojo/services/mojo_audio_decoder_service.h b/media/mojo/services/mojo_audio_decoder_service.h |
index 756e19c177f99740a7dddbf4b1165435b8d9ec2a..558d0eb590c1f25f5d70e074c9c8897f2f6c5319 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_; |