#include "services/network/public/cpp/data_pipe_to_source_stream.h"
#include <utility>
#include "base/auto_reset.h"
#include "base/functional/bind.h"
#include "base/numerics/checked_math.h"
#include "base/task/sequenced_task_runner.h"
#include "net/base/io_buffer.h"
namespace network {
DataPipeToSourceStream::DataPipeToSourceStream(
mojo::ScopedDataPipeConsumerHandle body)
: … { … }
DataPipeToSourceStream::~DataPipeToSourceStream() = default;
std::string DataPipeToSourceStream::Description() const { … }
bool DataPipeToSourceStream::MayHaveMoreBytes() const { … }
int DataPipeToSourceStream::Read(net::IOBuffer* buf,
int buf_size,
net::CompletionOnceCallback callback) { … }
void DataPipeToSourceStream::OnReadable(MojoResult unused) { … }
void DataPipeToSourceStream::FinishReading() { … }
}