#include "services/network/shared_dictionary/shared_dictionary_data_pipe_writer.h"
#include "base/containers/span.h"
#include "base/memory/ptr_util.h"
#include "net/base/net_errors.h"
#include "services/network/public/cpp/features.h"
#include "services/network/shared_dictionary/shared_dictionary_writer.h"
namespace network {
uint32_t SharedDictionaryDataPipeWriter::GetDataPipeBufferSize() { … }
std::unique_ptr<SharedDictionaryDataPipeWriter>
SharedDictionaryDataPipeWriter::Create(
mojo::ScopedDataPipeConsumerHandle& body,
scoped_refptr<SharedDictionaryWriter> writer,
base::OnceCallback<void(bool)> finish_callback) { … }
SharedDictionaryDataPipeWriter::SharedDictionaryDataPipeWriter(
mojo::ScopedDataPipeConsumerHandle consumer_handle,
mojo::ScopedDataPipeProducerHandle producer_handle,
scoped_refptr<SharedDictionaryWriter> writer,
base::OnceCallback<void(bool)> finish_callback)
: … { … }
SharedDictionaryDataPipeWriter::~SharedDictionaryDataPipeWriter() = default;
void SharedDictionaryDataPipeWriter::OnComplete(bool success) { … }
void SharedDictionaryDataPipeWriter::ContinueReadWrite(
MojoResult,
const mojo::HandleSignalsState& state) { … }
void SharedDictionaryDataPipeWriter::OnPeerClosed(
MojoResult,
const mojo::HandleSignalsState& state) { … }
void SharedDictionaryDataPipeWriter::FinishDataPipeOperation(bool success) { … }
void SharedDictionaryDataPipeWriter::MaybeFinish() { … }
}