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

Unified Diff: media/mojo/clients/mojo_demuxer_stream_impl.h

Issue 2096063003: media: Add MojoDecoderBuffer{Reader|Writer} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 4 years, 6 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/clients/mojo_decryptor.cc ('k') | media/mojo/clients/mojo_demuxer_stream_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/clients/mojo_demuxer_stream_impl.h
diff --git a/media/mojo/clients/mojo_demuxer_stream_impl.h b/media/mojo/clients/mojo_demuxer_stream_impl.h
index 9ead60e221e5361227da8594884739d54968ce77..5c284f4716b4618e1e206e136e26b7415ad66b1d 100644
--- a/media/mojo/clients/mojo_demuxer_stream_impl.h
+++ b/media/mojo/clients/mojo_demuxer_stream_impl.h
@@ -5,6 +5,8 @@
#ifndef MEDIA_MOJO_CLIENTS_MOJO_DEMUXER_STREAM_IMPL_H_
#define MEDIA_MOJO_CLIENTS_MOJO_DEMUXER_STREAM_IMPL_H_
+#include <memory>
+
#include "base/callback_forward.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
@@ -13,7 +15,9 @@
#include "mojo/public/cpp/bindings/binding.h"
namespace media {
+
class DemuxerStream;
+class MojoDecoderBufferWriter;
// This class wraps a media::DemuxerStream and exposes it as a
// mojom::DemuxerStream for use as a proxy from remote applications.
@@ -48,8 +52,7 @@ class MojoDemuxerStreamImpl : public mojom::DemuxerStream {
// See constructor. We do not own |stream_|.
media::DemuxerStream* stream_;
- // DataPipe for serializing the data section of DecoderBuffer into.
- mojo::ScopedDataPipeProducerHandle stream_pipe_;
+ std::unique_ptr<MojoDecoderBufferWriter> mojo_decoder_buffer_writer_;
base::WeakPtrFactory<MojoDemuxerStreamImpl> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(MojoDemuxerStreamImpl);
« no previous file with comments | « media/mojo/clients/mojo_decryptor.cc ('k') | media/mojo/clients/mojo_demuxer_stream_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698