#include "components/visited_url_ranking/internal/transformer/recency_filter_transformer.h"
#include <algorithm>
#include <vector>
#include "base/metrics/field_trial_params.h"
#include "base/time/time.h"
#include "components/visited_url_ranking/public/features.h"
#include "components/visited_url_ranking/public/fetch_options.h"
#include "components/visited_url_ranking/public/url_visit.h"
namespace visited_url_ranking {
namespace {
FetchOptions::URLTypeSet GetURLTypes(const URLVisitAggregate& visit) { … }
bool ShouldDiscardVisit(const URLVisitAggregate& visit,
base::Time current_time,
const FetchOptions& options) { … }
}
RecencyFilterTransformer::RecencyFilterTransformer()
: … { … }
RecencyFilterTransformer::~RecencyFilterTransformer() = default;
void RecencyFilterTransformer::Transform(
std::vector<URLVisitAggregate> aggregates,
const FetchOptions& options,
OnTransformCallback callback) { … }
}