#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "components/visitedlink/renderer/visitedlink_reader.h"
#include <stddef.h>
#include <stdint.h>
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/metrics/histogram_functions.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/web/web_view.h"
WebView;
namespace visitedlink {
VisitedLinkReader::VisitedLinkReader() = default;
VisitedLinkReader::~VisitedLinkReader() { … }
base::RepeatingCallback<
void(mojo::PendingReceiver<mojom::VisitedLinkNotificationSink>)>
VisitedLinkReader::GetBindCallback() { … }
uint64_t VisitedLinkReader::ComputePartitionedFingerprint(
std::string_view canonical_link_url,
const net::SchemefulSite& top_level_site,
const url::Origin& frame_origin) { … }
void VisitedLinkReader::UpdateVisitedLinks(
base::ReadOnlySharedMemoryRegion table_region) { … }
void VisitedLinkReader::UpdateUnpartitionedVisitedLinks(
base::ReadOnlySharedMemoryRegion table_region) { … }
void VisitedLinkReader::UpdatePartitionedVisitedLinks(
base::ReadOnlySharedMemoryRegion table_region) { … }
void VisitedLinkReader::AddVisitedLinks(
const std::vector<VisitedLinkReader::Fingerprint>& fingerprints) { … }
void VisitedLinkReader::ResetVisitedLinks(bool invalidate_hashes) { … }
void VisitedLinkReader::UpdateOriginSalts(
const base::flat_map<url::Origin, uint64_t>& origin_salts) { … }
void VisitedLinkReader::FreeTable() { … }
void VisitedLinkReader::Bind(
mojo::PendingReceiver<mojom::VisitedLinkNotificationSink> receiver) { … }
}