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

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

const char* ToString(URLType enum_param) {}

URLType ParseURLType(std::string_view enum_string) {}

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


const char* ToString(NavigationInitiation enum_param) {}

NavigationInitiation ParseNavigationInitiation(std::string_view enum_string) {}

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


PolicySpecifiedPasswordReuse::PolicySpecifiedPasswordReuse()
:{}

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

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

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

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

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

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


DangerousDownloadInfo::DangerousDownloadInfo()
 {}

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

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

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

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

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

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


InterstitialInfo::InterstitialInfo()
 {}

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

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

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

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

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

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


ServerRedirect::ServerRedirect()
 {}

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

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

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

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

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

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


ReferrerChainEntry::ReferrerChainEntry()
:{}

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

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

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

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

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

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



//
// Functions
//

namespace GetReferrerChain {

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 std::vector<ReferrerChainEntry>& entries) {}
}  // namespace GetReferrerChain

//
// Events
//

namespace OnPolicySpecifiedPasswordReuseDetected {

const char kEventName[] =;

base::Value::List Create(const PolicySpecifiedPasswordReuse& reuse_details) {}

}  // namespace OnPolicySpecifiedPasswordReuseDetected

namespace OnPolicySpecifiedPasswordChanged {

const char kEventName[] =;

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

}  // namespace OnPolicySpecifiedPasswordChanged

namespace OnDangerousDownloadOpened {

const char kEventName[] =;

base::Value::List Create(const DangerousDownloadInfo& dict) {}

}  // namespace OnDangerousDownloadOpened

namespace OnSecurityInterstitialShown {

const char kEventName[] =;

base::Value::List Create(const InterstitialInfo& dict) {}

}  // namespace OnSecurityInterstitialShown

namespace OnSecurityInterstitialProceeded {

const char kEventName[] =;

base::Value::List Create(const InterstitialInfo& dict) {}

}  // namespace OnSecurityInterstitialProceeded

}  // namespace safe_browsing_private
}  // namespace api
}  // namespace extensions