#include "services/network/public/cpp/source_stream_to_data_pipe.h"
#include "base/functional/bind.h"
#include "base/numerics/checked_math.h"
#include "base/task/sequenced_task_runner.h"
#include "net/filter/source_stream.h"
namespace network {
SourceStreamToDataPipe::SourceStreamToDataPipe(
std::unique_ptr<net::SourceStream> source,
mojo::ScopedDataPipeProducerHandle dest)
: … { … }
SourceStreamToDataPipe::~SourceStreamToDataPipe() = default;
void SourceStreamToDataPipe::Start(
base::OnceCallback<void(int)> completion_callback) { … }
void SourceStreamToDataPipe::ReadMore() { … }
void SourceStreamToDataPipe::DidRead(int result) { … }
void SourceStreamToDataPipe::OnDataPipeWritable(MojoResult result) { … }
void SourceStreamToDataPipe::OnComplete(int result) { … }
}