#include "third_party/blink/renderer/platform/network/encoded_form_data.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "third_party/blink/renderer/platform/blob/blob_data.h"
#include "third_party/blink/renderer/platform/file_metadata.h"
#include "third_party/blink/renderer/platform/network/form_data_encoder.h"
#include "third_party/blink/renderer/platform/network/wrapped_data_pipe_getter.h"
#include "third_party/blink/renderer/platform/wtf/shared_buffer.h"
#include "third_party/blink/renderer/platform/wtf/text/text_encoding.h"
namespace blink {
FormDataElement::FormDataElement() : … { … }
FormDataElement::FormDataElement(const Vector<char>& array)
: … { … }
FormDataElement::FormDataElement(Vector<char>&& array)
: … { … }
FormDataElement::FormDataElement(
const String& filename,
int64_t file_start,
int64_t file_length,
const std::optional<base::Time>& expected_file_modification_time)
: … { … }
FormDataElement::FormDataElement(const String& blob_uuid,
scoped_refptr<BlobDataHandle> optional_handle)
: … { … }
FormDataElement::FormDataElement(
scoped_refptr<WrappedDataPipeGetter> data_pipe_getter)
: … { … }
FormDataElement::FormDataElement(const FormDataElement&) = default;
FormDataElement::FormDataElement(FormDataElement&&) = default;
FormDataElement::~FormDataElement() = default;
FormDataElement& FormDataElement::operator=(const FormDataElement&) = default;
FormDataElement& FormDataElement::operator=(FormDataElement&&) = default;
bool operator==(const FormDataElement& a, const FormDataElement& b) { … }
inline EncodedFormData::EncodedFormData()
: … { … }
inline EncodedFormData::EncodedFormData(const EncodedFormData& data)
: … { … }
EncodedFormData::~EncodedFormData() = default;
scoped_refptr<EncodedFormData> EncodedFormData::Create() { … }
scoped_refptr<EncodedFormData> EncodedFormData::Create(const void* data,
wtf_size_t size) { … }
scoped_refptr<EncodedFormData> EncodedFormData::Create(
base::span<const char> string) { … }
scoped_refptr<EncodedFormData> EncodedFormData::Create(SegmentedBuffer&& data) { … }
scoped_refptr<EncodedFormData> EncodedFormData::Copy() const { … }
scoped_refptr<EncodedFormData> EncodedFormData::DeepCopy() const { … }
void EncodedFormData::AppendData(const void* data, wtf_size_t size) { … }
void EncodedFormData::AppendData(SegmentedBuffer&& buffer) { … }
void EncodedFormData::AppendFile(
const String& filename,
const std::optional<base::Time>& expected_modification_time) { … }
void EncodedFormData::AppendFileRange(
const String& filename,
int64_t start,
int64_t length,
const std::optional<base::Time>& expected_modification_time) { … }
void EncodedFormData::AppendBlob(
const String& uuid,
scoped_refptr<BlobDataHandle> optional_handle) { … }
void EncodedFormData::AppendDataPipe(
scoped_refptr<WrappedDataPipeGetter> handle) { … }
void EncodedFormData::Flatten(Vector<char>& data) const { … }
String EncodedFormData::FlattenToString() const { … }
uint64_t EncodedFormData::SizeInBytes() const { … }
bool EncodedFormData::IsSafeToSendToAnotherThread() const { … }
}