#include "chrome/common/extensions/api/autofill_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 autofill_private {
AccountInfo::AccountInfo()
: … { … }
AccountInfo::~AccountInfo() = default;
AccountInfo::AccountInfo(AccountInfo&& rhs) noexcept = default;
AccountInfo& AccountInfo::operator=(AccountInfo&& rhs) noexcept = default;
AccountInfo AccountInfo::Clone() const { … }
bool AccountInfo::Populate(
const base::Value::Dict& dict, AccountInfo& out) { … }
bool AccountInfo::Populate(
const base::Value& value, AccountInfo& out) { … }
std::optional<AccountInfo> AccountInfo::FromValue(const base::Value::Dict& value) { … }
std::optional<AccountInfo> AccountInfo::FromValue(const base::Value& value) { … }
base::Value::Dict AccountInfo::ToValue() const { … }
const char* ToString(FieldType enum_param) { … }
FieldType ParseFieldType(std::string_view enum_string) { … }
std::u16string GetFieldTypeParseError(std::string_view enum_string) { … }
const char* ToString(AddressRecordType enum_param) { … }
AddressRecordType ParseAddressRecordType(std::string_view enum_string) { … }
std::u16string GetAddressRecordTypeParseError(std::string_view enum_string) { … }
AutofillMetadata::AutofillMetadata()
: … { … }
AutofillMetadata::~AutofillMetadata() = default;
AutofillMetadata::AutofillMetadata(AutofillMetadata&& rhs) noexcept = default;
AutofillMetadata& AutofillMetadata::operator=(AutofillMetadata&& rhs) noexcept = default;
AutofillMetadata AutofillMetadata::Clone() const { … }
bool AutofillMetadata::Populate(
const base::Value::Dict& dict, AutofillMetadata& out) { … }
bool AutofillMetadata::Populate(
const base::Value& value, AutofillMetadata& out) { … }
std::optional<AutofillMetadata> AutofillMetadata::FromValue(const base::Value::Dict& value) { … }
std::optional<AutofillMetadata> AutofillMetadata::FromValue(const base::Value& value) { … }
base::Value::Dict AutofillMetadata::ToValue() const { … }
AddressField::AddressField()
: … { … }
AddressField::~AddressField() = default;
AddressField::AddressField(AddressField&& rhs) noexcept = default;
AddressField& AddressField::operator=(AddressField&& rhs) noexcept = default;
AddressField AddressField::Clone() const { … }
bool AddressField::Populate(
const base::Value::Dict& dict, AddressField& out) { … }
bool AddressField::Populate(
const base::Value& value, AddressField& out) { … }
std::optional<AddressField> AddressField::FromValue(const base::Value::Dict& value) { … }
std::optional<AddressField> AddressField::FromValue(const base::Value& value) { … }
base::Value::Dict AddressField::ToValue() const { … }
AddressEntry::AddressEntry()
{ … }
AddressEntry::~AddressEntry() = default;
AddressEntry::AddressEntry(AddressEntry&& rhs) noexcept = default;
AddressEntry& AddressEntry::operator=(AddressEntry&& rhs) noexcept = default;
AddressEntry AddressEntry::Clone() const { … }
bool AddressEntry::Populate(
const base::Value::Dict& dict, AddressEntry& out) { … }
bool AddressEntry::Populate(
const base::Value& value, AddressEntry& out) { … }
std::optional<AddressEntry> AddressEntry::FromValue(const base::Value::Dict& value) { … }
std::optional<AddressEntry> AddressEntry::FromValue(const base::Value& value) { … }
base::Value::Dict AddressEntry::ToValue() const { … }
CountryEntry::CountryEntry()
{ … }
CountryEntry::~CountryEntry() = default;
CountryEntry::CountryEntry(CountryEntry&& rhs) noexcept = default;
CountryEntry& CountryEntry::operator=(CountryEntry&& rhs) noexcept = default;
CountryEntry CountryEntry::Clone() const { … }
bool CountryEntry::Populate(
const base::Value::Dict& dict, CountryEntry& out) { … }
bool CountryEntry::Populate(
const base::Value& value, CountryEntry& out) { … }
std::optional<CountryEntry> CountryEntry::FromValue(const base::Value::Dict& value) { … }
std::optional<CountryEntry> CountryEntry::FromValue(const base::Value& value) { … }
base::Value::Dict CountryEntry::ToValue() const { … }
AddressComponent::AddressComponent()
: … { … }
AddressComponent::~AddressComponent() = default;
AddressComponent::AddressComponent(AddressComponent&& rhs) noexcept = default;
AddressComponent& AddressComponent::operator=(AddressComponent&& rhs) noexcept = default;
AddressComponent AddressComponent::Clone() const { … }
bool AddressComponent::Populate(
const base::Value::Dict& dict, AddressComponent& out) { … }
bool AddressComponent::Populate(
const base::Value& value, AddressComponent& out) { … }
std::optional<AddressComponent> AddressComponent::FromValue(const base::Value::Dict& value) { … }
std::optional<AddressComponent> AddressComponent::FromValue(const base::Value& value) { … }
base::Value::Dict AddressComponent::ToValue() const { … }
AddressComponentRow::AddressComponentRow()
{ … }
AddressComponentRow::~AddressComponentRow() = default;
AddressComponentRow::AddressComponentRow(AddressComponentRow&& rhs) noexcept = default;
AddressComponentRow& AddressComponentRow::operator=(AddressComponentRow&& rhs) noexcept = default;
AddressComponentRow AddressComponentRow::Clone() const { … }
bool AddressComponentRow::Populate(
const base::Value::Dict& dict, AddressComponentRow& out) { … }
bool AddressComponentRow::Populate(
const base::Value& value, AddressComponentRow& out) { … }
std::optional<AddressComponentRow> AddressComponentRow::FromValue(const base::Value::Dict& value) { … }
std::optional<AddressComponentRow> AddressComponentRow::FromValue(const base::Value& value) { … }
base::Value::Dict AddressComponentRow::ToValue() const { … }
AddressComponents::AddressComponents()
{ … }
AddressComponents::~AddressComponents() = default;
AddressComponents::AddressComponents(AddressComponents&& rhs) noexcept = default;
AddressComponents& AddressComponents::operator=(AddressComponents&& rhs) noexcept = default;
AddressComponents AddressComponents::Clone() const { … }
bool AddressComponents::Populate(
const base::Value::Dict& dict, AddressComponents& out) { … }
bool AddressComponents::Populate(
const base::Value& value, AddressComponents& out) { … }
std::optional<AddressComponents> AddressComponents::FromValue(const base::Value::Dict& value) { … }
std::optional<AddressComponents> AddressComponents::FromValue(const base::Value& value) { … }
base::Value::Dict AddressComponents::ToValue() const { … }
CreditCardEntry::CreditCardEntry()
{ … }
CreditCardEntry::~CreditCardEntry() = default;
CreditCardEntry::CreditCardEntry(CreditCardEntry&& rhs) noexcept = default;
CreditCardEntry& CreditCardEntry::operator=(CreditCardEntry&& rhs) noexcept = default;
CreditCardEntry CreditCardEntry::Clone() const { … }
bool CreditCardEntry::Populate(
const base::Value::Dict& dict, CreditCardEntry& out) { … }
bool CreditCardEntry::Populate(
const base::Value& value, CreditCardEntry& out) { … }
std::optional<CreditCardEntry> CreditCardEntry::FromValue(const base::Value::Dict& value) { … }
std::optional<CreditCardEntry> CreditCardEntry::FromValue(const base::Value& value) { … }
base::Value::Dict CreditCardEntry::ToValue() const { … }
IbanEntry::IbanEntry()
{ … }
IbanEntry::~IbanEntry() = default;
IbanEntry::IbanEntry(IbanEntry&& rhs) noexcept = default;
IbanEntry& IbanEntry::operator=(IbanEntry&& rhs) noexcept = default;
IbanEntry IbanEntry::Clone() const { … }
bool IbanEntry::Populate(
const base::Value::Dict& dict, IbanEntry& out) { … }
bool IbanEntry::Populate(
const base::Value& value, IbanEntry& out) { … }
std::optional<IbanEntry> IbanEntry::FromValue(const base::Value::Dict& value) { … }
std::optional<IbanEntry> IbanEntry::FromValue(const base::Value& value) { … }
base::Value::Dict IbanEntry::ToValue() const { … }
namespace GetAccountInfo {
base::Value::List Results::Create(const AccountInfo& account_info) { … }
}
namespace SaveAddress {
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) { … }
}
namespace GetCountryList {
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<CountryEntry>& countries) { … }
}
namespace GetAddressComponents {
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 AddressComponents& components) { … }
}
namespace GetAddressList {
base::Value::List Results::Create(const std::vector<AddressEntry>& entries) { … }
}
namespace SaveCreditCard {
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) { … }
}
namespace SaveIban {
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) { … }
}
namespace RemoveEntry {
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) { … }
}
namespace GetCreditCardList {
base::Value::List Results::Create(const std::vector<CreditCardEntry>& entries) { … }
}
namespace GetIbanList {
base::Value::List Results::Create(const std::vector<IbanEntry>& entries) { … }
}
namespace IsValidIban {
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(bool is_valid) { … }
}
namespace MigrateCreditCards {
}
namespace LogServerCardLinkClicked {
}
namespace AddVirtualCard {
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) { … }
}
namespace RemoveVirtualCard {
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) { … }
}
namespace AuthenticateUserAndFlipMandatoryAuthToggle {
}
namespace GetLocalCard {
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 CreditCardEntry& card) { … }
}
namespace CheckIfDeviceAuthAvailable {
base::Value::List Results::Create(bool is_device_auth_available) { … }
}
namespace BulkDeleteAllCvcs {
}
namespace SetAutofillSyncToggleEnabled {
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) { … }
}
namespace OnPersonalDataChanged {
const char kEventName[] = …;
base::Value::List Create(const std::vector<AddressEntry>& address_entries, const std::vector<CreditCardEntry>& credit_card_entries, const std::vector<IbanEntry>& ibans, const AccountInfo& account_info) { … }
}
}
}
}