#include "net/base/chunked_upload_data_stream.h"
#include "base/check_op.h"
#include "base/memory/ptr_util.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
namespace net {
ChunkedUploadDataStream::Writer::~Writer() = default;
bool ChunkedUploadDataStream::Writer::AppendData(base::span<const uint8_t> data,
bool is_done) { … }
ChunkedUploadDataStream::Writer::Writer(
base::WeakPtr<ChunkedUploadDataStream> upload_data_stream)
: … { … }
ChunkedUploadDataStream::ChunkedUploadDataStream(int64_t identifier,
bool has_null_source)
: … { … }
ChunkedUploadDataStream::~ChunkedUploadDataStream() = default;
std::unique_ptr<ChunkedUploadDataStream::Writer>
ChunkedUploadDataStream::CreateWriter() { … }
void ChunkedUploadDataStream::AppendData(base::span<const uint8_t> data,
bool is_done) { … }
int ChunkedUploadDataStream::InitInternal(const NetLogWithSource& net_log) { … }
int ChunkedUploadDataStream::ReadInternal(IOBuffer* buf, int buf_len) { … }
void ChunkedUploadDataStream::ResetInternal() { … }
int ChunkedUploadDataStream::ReadChunk(IOBuffer* buf, int buf_len) { … }
}