#include "components/visited_url_ranking/internal/transformer/history_url_visit_aggregates_categories_transformer.h"
#include <string>
#include <vector>
#include "base/containers/flat_set.h"
#include "base/functional/callback.h"
#include "components/history/core/browser/history_types.h"
#include "components/visited_url_ranking/public/url_visit.h"
namespace {
bool AnnotationsContainsAnyOfCategories(
const history::VisitContentAnnotations& content_annotations,
const base::flat_set<std::string>& categories) { … }
}
namespace visited_url_ranking {
HistoryURLVisitAggregatesCategoriesTransformer::
HistoryURLVisitAggregatesCategoriesTransformer(
base::flat_set<std::string> blocklisted_categories)
: … { … }
HistoryURLVisitAggregatesCategoriesTransformer::
~HistoryURLVisitAggregatesCategoriesTransformer() = default;
void HistoryURLVisitAggregatesCategoriesTransformer::Transform(
std::vector<URLVisitAggregate> aggregates,
const FetchOptions& options,
OnTransformCallback callback) { … }
}