#include "net/first_party_sets/first_party_set_entry.h"
#include <tuple>
#include "base/notreached.h"
#include "base/strings/strcat.h"
#include "net/base/schemeful_site.h"
namespace net {
namespace {
std::string SiteTypeToString(SiteType site_type) { … }
}
FirstPartySetEntry::SiteIndex::SiteIndex() = default;
FirstPartySetEntry::SiteIndex::SiteIndex(uint32_t value) : … { … }
bool FirstPartySetEntry::SiteIndex::operator==(const SiteIndex& other) const =
default;
FirstPartySetEntry::FirstPartySetEntry() = default;
FirstPartySetEntry::FirstPartySetEntry(
SchemefulSite primary,
SiteType site_type,
std::optional<FirstPartySetEntry::SiteIndex> site_index)
: … { … }
FirstPartySetEntry::FirstPartySetEntry(SchemefulSite primary,
SiteType site_type,
uint32_t site_index)
: … { … }
FirstPartySetEntry::FirstPartySetEntry(const FirstPartySetEntry&) = default;
FirstPartySetEntry& FirstPartySetEntry::operator=(const FirstPartySetEntry&) =
default;
FirstPartySetEntry::FirstPartySetEntry(FirstPartySetEntry&&) = default;
FirstPartySetEntry& FirstPartySetEntry::operator=(FirstPartySetEntry&&) =
default;
FirstPartySetEntry::~FirstPartySetEntry() = default;
bool FirstPartySetEntry::operator==(const FirstPartySetEntry& other) const =
default;
bool FirstPartySetEntry::operator!=(const FirstPartySetEntry& other) const =
default;
std::optional<net::SiteType> FirstPartySetEntry::DeserializeSiteType(
int value) { … }
std::string FirstPartySetEntry::GetDebugString() const { … }
std::ostream& operator<<(std::ostream& os,
const FirstPartySetEntry::SiteIndex& index) { … }
std::ostream& operator<<(std::ostream& os, const FirstPartySetEntry& entry) { … }
}