#include "components/segmentation_platform/internal/signals/url_signal_handler.h"
#include "base/check.h"
#include "base/functional/callback.h"
#include "components/segmentation_platform/internal/database/ukm_database.h"
namespace segmentation_platform {
bool UrlSignalHandler::HistoryDelegate::FastCheckUrl(const GURL& url) { … }
UrlSignalHandler::UrlSignalHandler(UkmDatabase* ukm_database)
: … { … }
UrlSignalHandler::~UrlSignalHandler() { … }
void UrlSignalHandler::OnUkmSourceUpdated(ukm::SourceId source_id,
const std::vector<GURL>& urls) { … }
void UrlSignalHandler::OnHistoryVisit(const GURL& url,
const std::string& profile_id) { … }
void UrlSignalHandler::OnUrlsRemovedFromHistory(const std::vector<GURL>& urls,
bool all_urls) { … }
void UrlSignalHandler::AddHistoryDelegate(HistoryDelegate* history_delegate) { … }
void UrlSignalHandler::RemoveHistoryDelegate(
HistoryDelegate* history_delegate) { … }
void UrlSignalHandler::CheckHistoryForUrl(const GURL& url,
FindCallback callback) { … }
void UrlSignalHandler::ContinueCheckingHistory(
const GURL& url,
std::unique_ptr<base::flat_set<HistoryDelegate*>> delegates_checked,
FindCallback callback,
bool found,
const std::string& profile_id) { … }
void UrlSignalHandler::OnCheckedHistory(ukm::SourceId source_id,
const GURL& url,
bool in_history,
const std::string& profile_id) { … }
}