chromium/out/Default/gen/extensions/common/api/system_storage.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
//   extensions/common/api/system_storage.idl
// by tools/json_schema_compiler.
// DO NOT EDIT.

#include "extensions/common/api/system_storage.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 system_storage {
//
// Types
//

const char* ToString(StorageUnitType enum_param) {}

StorageUnitType ParseStorageUnitType(std::string_view enum_string) {}

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


StorageUnitInfo::StorageUnitInfo()
:{}

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

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

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

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

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

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


StorageAvailableCapacityInfo::StorageAvailableCapacityInfo()
:{}

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

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

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

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

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

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


const char* ToString(EjectDeviceResultCode enum_param) {}

EjectDeviceResultCode ParseEjectDeviceResultCode(std::string_view enum_string) {}

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



//
// Functions
//

namespace GetInfo {

base::Value::List Results::Create(const std::vector<StorageUnitInfo>& info) {}
}  // namespace GetInfo

namespace EjectDevice {

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(const EjectDeviceResultCode& result) {}
}  // namespace EjectDevice

namespace GetAvailableCapacity {

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(const StorageAvailableCapacityInfo& info) {}
}  // namespace GetAvailableCapacity

//
// Events
//

namespace OnAttached {

const char kEventName[] =;

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

}  // namespace OnAttached

namespace OnDetached {

const char kEventName[] =;

base::Value::List Create(const std::string& id) {}

}  // namespace OnDetached

}  // namespace system_storage
}  // namespace api
}  // namespace extensions