chromium/out/Default/gen/chrome/common/extensions/api/image_writer_private.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// GENERATED FROM THE API DEFINITION IN
//   chrome/common/extensions/api/image_writer_private.idl
// by tools/json_schema_compiler.
// DO NOT EDIT.

#include "chrome/common/extensions/api/image_writer_private.h"

#include <memory>
#include <optional>
#include <ostream>
#include <string>
#include <string_view>
#include <utility>
#include <vector>

#include "base/check.h"
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "tools/json_schema_compiler/util.h"
#include <string_view>


UTF8ToUTF16;

namespace extensions {
namespace api {
namespace image_writer_private {
//
// Types
//

const char* ToString(Stage enum_param) {}

Stage ParseStage(std::string_view enum_string) {}

std::u16string GetStageParseError(std::string_view enum_string) {}


UrlWriteOptions::UrlWriteOptions()
 {}

UrlWriteOptions::~UrlWriteOptions() = default;
UrlWriteOptions::UrlWriteOptions(UrlWriteOptions&& rhs) noexcept = default;
UrlWriteOptions& UrlWriteOptions::operator=(UrlWriteOptions&& rhs) noexcept = default;
UrlWriteOptions UrlWriteOptions::Clone() const {}

// static
bool UrlWriteOptions::Populate(
    const base::Value::Dict& dict, UrlWriteOptions& out) {}

// static
bool UrlWriteOptions::Populate(
    const base::Value& value, UrlWriteOptions& out) {}

// static
std::optional<UrlWriteOptions> UrlWriteOptions::FromValue(const base::Value::Dict& value) {}

// static
std::optional<UrlWriteOptions> UrlWriteOptions::FromValue(const base::Value& value) {}

base::Value::Dict UrlWriteOptions::ToValue() const {}


ProgressInfo::ProgressInfo()
:{}

ProgressInfo::~ProgressInfo() = default;
ProgressInfo::ProgressInfo(ProgressInfo&& rhs) noexcept = default;
ProgressInfo& ProgressInfo::operator=(ProgressInfo&& rhs) noexcept = default;
ProgressInfo ProgressInfo::Clone() const {}

// static
bool ProgressInfo::Populate(
    const base::Value::Dict& dict, ProgressInfo& out) {}

// static
bool ProgressInfo::Populate(
    const base::Value& value, ProgressInfo& out) {}

// static
std::optional<ProgressInfo> ProgressInfo::FromValue(const base::Value::Dict& value) {}

// static
std::optional<ProgressInfo> ProgressInfo::FromValue(const base::Value& value) {}

base::Value::Dict ProgressInfo::ToValue() const {}


RemovableStorageDevice::RemovableStorageDevice()
:{}

RemovableStorageDevice::~RemovableStorageDevice() = default;
RemovableStorageDevice::RemovableStorageDevice(RemovableStorageDevice&& rhs) noexcept = default;
RemovableStorageDevice& RemovableStorageDevice::operator=(RemovableStorageDevice&& rhs) noexcept = default;
RemovableStorageDevice RemovableStorageDevice::Clone() const {}

// static
bool RemovableStorageDevice::Populate(
    const base::Value::Dict& dict, RemovableStorageDevice& out) {}

// static
bool RemovableStorageDevice::Populate(
    const base::Value& value, RemovableStorageDevice& out) {}

// static
std::optional<RemovableStorageDevice> RemovableStorageDevice::FromValue(const base::Value::Dict& value) {}

// static
std::optional<RemovableStorageDevice> RemovableStorageDevice::FromValue(const base::Value& value) {}

base::Value::Dict RemovableStorageDevice::ToValue() const {}



//
// Functions
//

namespace WriteFromUrl {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create() {}
}  // namespace WriteFromUrl

namespace WriteFromFile {

Params::FileEntry::FileEntry()
 {}

Params::FileEntry::~FileEntry() = default;
Params::FileEntry::FileEntry(FileEntry&& rhs) noexcept = default;
Params::FileEntry& Params::FileEntry::operator=(FileEntry&& rhs) noexcept = default;
Params::FileEntry Params::FileEntry::Clone() const {}

// static
bool Params::FileEntry::Populate(
    const base::Value::Dict& dict, FileEntry& out) {}

// static
bool Params::FileEntry::Populate(
    const base::Value& value, FileEntry& out) {}

// static
std::optional<Params::FileEntry> Params::FileEntry::FromValue(const base::Value::Dict& value) {}

// static
std::optional<Params::FileEntry> Params::FileEntry::FromValue(const base::Value& value) {}


Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create() {}
}  // namespace WriteFromFile

namespace CancelWrite {

base::Value::List Results::Create() {}
}  // namespace CancelWrite

namespace DestroyPartitions {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create() {}
}  // namespace DestroyPartitions

namespace ListRemovableStorageDevices {

base::Value::List Results::Create(const std::vector<RemovableStorageDevice>& devices) {}
}  // namespace ListRemovableStorageDevices

//
// Events
//

namespace OnWriteProgress {

const char kEventName[] =;

base::Value::List Create(const ProgressInfo& info) {}

}  // namespace OnWriteProgress

namespace OnWriteComplete {

const char kEventName[] =;

base::Value::List Create() {}

}  // namespace OnWriteComplete

namespace OnWriteError {

const char kEventName[] =;

base::Value::List Create(const ProgressInfo& info, const std::string& error) {}

}  // namespace OnWriteError

namespace OnDeviceInserted {

const char kEventName[] =;

base::Value::List Create(const RemovableStorageDevice& device) {}

}  // namespace OnDeviceInserted

namespace OnDeviceRemoved {

const char kEventName[] =;

base::Value::List Create(const RemovableStorageDevice& device) {}

}  // namespace OnDeviceRemoved

}  // namespace image_writer_private
}  // namespace api
}  // namespace extensions