#include "components/visitedlink/common/visitedlink_common.h"
#include <string.h>
#include <ostream>
#include <string_view>
#include "base/bit_cast.h"
#include "base/check.h"
#include "base/hash/md5.h"
#include "base/notreached.h"
#include "components/visitedlink/core/visited_link.h"
#include "net/base/schemeful_site.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace {
visitedlink::VisitedLinkCommon::Fingerprint ConvertDigestToFingerprint(
base::MD5Digest digest) { … }
}
namespace visitedlink {
const VisitedLinkCommon::Fingerprint VisitedLinkCommon::null_fingerprint_ = …;
const VisitedLinkCommon::Hash VisitedLinkCommon::null_hash_ = …;
VisitedLinkCommon::VisitedLinkCommon() { … }
VisitedLinkCommon::~VisitedLinkCommon() = default;
bool VisitedLinkCommon::IsVisited(std::string_view canonical_url) const { … }
bool VisitedLinkCommon::IsVisited(const GURL& url) const { … }
bool VisitedLinkCommon::IsVisited(const VisitedLink& link, uint64_t salt) { … }
bool VisitedLinkCommon::IsVisited(const GURL& link_url,
const net::SchemefulSite& top_level_site,
const url::Origin& frame_origin,
uint64_t salt) { … }
bool VisitedLinkCommon::IsVisited(Fingerprint fingerprint) const { … }
VisitedLinkCommon::Fingerprint VisitedLinkCommon::ComputeURLFingerprint(
std::string_view canonical_url,
const uint8_t salt[LINK_SALT_LENGTH]) { … }
VisitedLinkCommon::Fingerprint VisitedLinkCommon::ComputePartitionedFingerprint(
const VisitedLink& link,
uint64_t salt) { … }
VisitedLinkCommon::Fingerprint VisitedLinkCommon::ComputePartitionedFingerprint(
const GURL& link_url,
const net::SchemefulSite& top_level_site,
const url::Origin& frame_origin,
uint64_t salt) { … }
}