chromium/third_party/blink/renderer/platform/network/encoded_form_data.cc

/*
 * Copyright (C) 2004, 2006, 2008, 2011 Apple Inc. All rights reserved.
 * Copyright (C) 2009 Google Inc. All rights reserved.
 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public License
 * along with this library; see the file COPYING.LIB. If not, write to
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA 02110-1301, USA.
 */

#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 {}

}  // namespace blink