#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 {
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 { … }
bool PolicySpecifiedPasswordReuse::Populate(
const base::Value::Dict& dict, PolicySpecifiedPasswordReuse& out) { … }
bool PolicySpecifiedPasswordReuse::Populate(
const base::Value& value, PolicySpecifiedPasswordReuse& out) { … }
std::optional<PolicySpecifiedPasswordReuse> PolicySpecifiedPasswordReuse::FromValue(const base::Value::Dict& value) { … }
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 { … }
bool DangerousDownloadInfo::Populate(
const base::Value::Dict& dict, DangerousDownloadInfo& out) { … }
bool DangerousDownloadInfo::Populate(
const base::Value& value, DangerousDownloadInfo& out) { … }
std::optional<DangerousDownloadInfo> DangerousDownloadInfo::FromValue(const base::Value::Dict& value) { … }
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 { … }
bool InterstitialInfo::Populate(
const base::Value::Dict& dict, InterstitialInfo& out) { … }
bool InterstitialInfo::Populate(
const base::Value& value, InterstitialInfo& out) { … }
std::optional<InterstitialInfo> InterstitialInfo::FromValue(const base::Value::Dict& value) { … }
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 { … }
bool ServerRedirect::Populate(
const base::Value::Dict& dict, ServerRedirect& out) { … }
bool ServerRedirect::Populate(
const base::Value& value, ServerRedirect& out) { … }
std::optional<ServerRedirect> ServerRedirect::FromValue(const base::Value::Dict& value) { … }
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 { … }
bool ReferrerChainEntry::Populate(
const base::Value::Dict& dict, ReferrerChainEntry& out) { … }
bool ReferrerChainEntry::Populate(
const base::Value& value, ReferrerChainEntry& out) { … }
std::optional<ReferrerChainEntry> ReferrerChainEntry::FromValue(const base::Value::Dict& value) { … }
std::optional<ReferrerChainEntry> ReferrerChainEntry::FromValue(const base::Value& value) { … }
base::Value::Dict ReferrerChainEntry::ToValue() const { … }
namespace GetReferrerChain {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
base::Value::List Results::Create(const std::vector<ReferrerChainEntry>& entries) { … }
}
namespace OnPolicySpecifiedPasswordReuseDetected {
const char kEventName[] = …;
base::Value::List Create(const PolicySpecifiedPasswordReuse& reuse_details) { … }
}
namespace OnPolicySpecifiedPasswordChanged {
const char kEventName[] = …;
base::Value::List Create(const std::string& user_name) { … }
}
namespace OnDangerousDownloadOpened {
const char kEventName[] = …;
base::Value::List Create(const DangerousDownloadInfo& dict) { … }
}
namespace OnSecurityInterstitialShown {
const char kEventName[] = …;
base::Value::List Create(const InterstitialInfo& dict) { … }
}
namespace OnSecurityInterstitialProceeded {
const char kEventName[] = …;
base::Value::List Create(const InterstitialInfo& dict) { … }
}
}
}
}