chromium/out/Default/gen/chrome/common/extensions/api/webstore_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/webstore_private.json
// by tools/json_schema_compiler.
// DO NOT EDIT.

#include "chrome/common/extensions/api/webstore_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 webstore_private {
//
// Types
//

const char* ToString(Result enum_param) {}

Result ParseResult(std::string_view enum_string) {}

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


const char* ToString(WebGlStatus enum_param) {}

WebGlStatus ParseWebGlStatus(std::string_view enum_string) {}

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


const char* ToString(ExtensionInstallStatus enum_param) {}

ExtensionInstallStatus ParseExtensionInstallStatus(std::string_view enum_string) {}

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


const char* ToString(MV2DeprecationStatus enum_param) {}

MV2DeprecationStatus ParseMV2DeprecationStatus(std::string_view enum_string) {}

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



//
// Functions
//

namespace BeginInstallWithManifest3 {

Params::Details::Details()
 {}

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

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

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

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

// static
std::optional<Params::Details> Params::Details::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(const Result& result) {}
}  // namespace BeginInstallWithManifest3

namespace CompleteInstall {

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 CompleteInstall

namespace EnableAppLauncher {

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

namespace GetBrowserLogin {

Results::Info::Info()
 {}

Results::Info::~Info() = default;
Results::Info::Info(Info&& rhs) noexcept = default;
Results::Info& Results::Info::operator=(Info&& rhs) noexcept = default;
base::Value::Dict Results::Info::ToValue() const {}


base::Value::List Results::Create(const Info& info) {}
}  // namespace GetBrowserLogin

namespace GetStoreLogin {

base::Value::List Results::Create(const std::string& login) {}
}  // namespace GetStoreLogin

namespace SetStoreLogin {

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 SetStoreLogin

namespace GetWebGLStatus {

base::Value::List Results::Create(const WebGlStatus& webgl_status) {}
}  // namespace GetWebGLStatus

namespace GetIsLauncherEnabled {

base::Value::List Results::Create(bool is_enabled) {}
}  // namespace GetIsLauncherEnabled

namespace IsInIncognitoMode {

base::Value::List Results::Create(bool is_incognito) {}
}  // namespace IsInIncognitoMode

namespace IsPendingCustodianApproval {

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(bool is_pending_approval) {}
}  // namespace IsPendingCustodianApproval

namespace GetReferrerChain {

base::Value::List Results::Create(const std::string& referrer_chain) {}
}  // namespace GetReferrerChain

namespace GetExtensionStatus {

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 ExtensionInstallStatus& status) {}
}  // namespace GetExtensionStatus

namespace GetFullChromeVersion {

Results::Info::Info()
 {}

Results::Info::~Info() = default;
Results::Info::Info(Info&& rhs) noexcept = default;
Results::Info& Results::Info::operator=(Info&& rhs) noexcept = default;
base::Value::Dict Results::Info::ToValue() const {}


base::Value::List Results::Create(const Info& info) {}
}  // namespace GetFullChromeVersion

namespace GetMV2DeprecationStatus {

base::Value::List Results::Create(const MV2DeprecationStatus& status) {}
}  // namespace GetMV2DeprecationStatus

}  // namespace webstore_private
}  // namespace api
}  // namespace extensions