#include "components/visitedlink/browser/visitedlink_event_listener.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/metrics/histogram_functions.h"
#include "base/time/time.h"
#include "components/visitedlink/browser/visitedlink_delegate.h"
#include "components/visitedlink/common/visitedlink.mojom.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_widget_host.h"
#include "content/public/browser/render_widget_host_iterator.h"
#include "mojo/public/cpp/bindings/remote.h"
Time;
RenderWidgetHost;
namespace {
constexpr int kCommitIntervalMs = …;
const unsigned kVisitedLinkBufferThreshold = …;
uint64_t OriginSaltHelper(
raw_ptr<visitedlink::PartitionedVisitedLinkWriter> partitioned_writer,
const url::Origin& origin) { … }
}
namespace visitedlink {
class VisitedLinkUpdater { … };
VisitedLinkEventListener::VisitedLinkEventListener(
content::BrowserContext* browser_context)
: … { … }
VisitedLinkEventListener::VisitedLinkEventListener(
content::BrowserContext* browser_context,
PartitionedVisitedLinkWriter* partitioned_writer)
: … { … }
VisitedLinkEventListener::~VisitedLinkEventListener() { … }
void VisitedLinkEventListener::NewTable(
base::ReadOnlySharedMemoryRegion* table_region) { … }
void VisitedLinkEventListener::Add(VisitedLinkWriter::Fingerprint fingerprint) { … }
void VisitedLinkEventListener::Reset(bool invalidate_hashes) { … }
void VisitedLinkEventListener::UpdateOriginSalts() { … }
void VisitedLinkEventListener::SetCoalesceTimerForTest(
base::OneShotTimer* coalesce_timer_override) { … }
void VisitedLinkEventListener::CommitVisitedLinks() { … }
void VisitedLinkEventListener::OnRenderProcessHostCreated(
content::RenderProcessHost* rph) { … }
void VisitedLinkEventListener::RenderProcessHostDestroyed(
content::RenderProcessHost* host) { … }
void VisitedLinkEventListener::RenderWidgetHostVisibilityChanged(
content::RenderWidgetHost* rwh,
bool became_visible) { … }
void VisitedLinkEventListener::RenderWidgetHostDestroyed(
content::RenderWidgetHost* rwh) { … }
}