#include "net/base/elements_upload_data_stream.h"
#include <utility>
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
#include "net/base/upload_bytes_element_reader.h"
#include "net/base/upload_element_reader.h"
namespace net {
ElementsUploadDataStream::ElementsUploadDataStream(
std::vector<std::unique_ptr<UploadElementReader>> element_readers,
int64_t identifier)
: … { … }
ElementsUploadDataStream::~ElementsUploadDataStream() = default;
std::unique_ptr<UploadDataStream> ElementsUploadDataStream::CreateWithReader(
std::unique_ptr<UploadElementReader> reader,
int64_t identifier) { … }
int ElementsUploadDataStream::InitInternal(const NetLogWithSource& net_log) { … }
int ElementsUploadDataStream::ReadInternal(
IOBuffer* buf,
int buf_len) { … }
bool ElementsUploadDataStream::IsInMemory() const { … }
const std::vector<std::unique_ptr<UploadElementReader>>*
ElementsUploadDataStream::GetElementReaders() const { … }
void ElementsUploadDataStream::ResetInternal() { … }
int ElementsUploadDataStream::InitElements(size_t start_index) { … }
void ElementsUploadDataStream::OnInitElementCompleted(size_t index,
int result) { … }
int ElementsUploadDataStream::ReadElements(
const scoped_refptr<DrainableIOBuffer>& buf) { … }
void ElementsUploadDataStream::OnReadElementCompleted(
const scoped_refptr<DrainableIOBuffer>& buf,
int result) { … }
void ElementsUploadDataStream::ProcessReadResult(
const scoped_refptr<DrainableIOBuffer>& buf,
int result) { … }
}