#include "media/mojo/common/mojo_data_pipe_read_write.h"
#include <memory>
#include "base/compiler_specific.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/memory/ptr_util.h"
#include "base/task/sequenced_task_runner.h"
#include "media/mojo/common/mojo_pipe_read_write_util.h"
IsPipeReadWriteError;
namespace media {
MojoDataPipeReader::MojoDataPipeReader(
mojo::ScopedDataPipeConsumerHandle consumer_handle)
: … { … }
MojoDataPipeReader::~MojoDataPipeReader() { … }
void MojoDataPipeReader::CompleteCurrentRead() { … }
void MojoDataPipeReader::Read(uint8_t* buffer,
uint32_t num_bytes,
DoneCB done_cb) { … }
void MojoDataPipeReader::TryReadData(MojoResult result) { … }
void MojoDataPipeReader::OnPipeError(MojoResult result) { … }
bool MojoDataPipeReader::IsPipeValid() const { … }
void MojoDataPipeReader::Close() { … }
MojoDataPipeWriter::MojoDataPipeWriter(
mojo::ScopedDataPipeProducerHandle producer_handle)
: … { … }
MojoDataPipeWriter::~MojoDataPipeWriter() { … }
void MojoDataPipeWriter::Write(const uint8_t* buffer,
uint32_t buffer_size,
DoneCB done_cb) { … }
void MojoDataPipeWriter::TryWriteData(MojoResult result) { … }
void MojoDataPipeWriter::CompleteCurrentWrite() { … }
void MojoDataPipeWriter::OnPipeError(MojoResult result) { … }
bool MojoDataPipeWriter::IsPipeValid() const { … }
void MojoDataPipeWriter::Close() { … }
}