blob: 2719ee62070cc9b2f2b4628365a34ec3bccbdded [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef PERIDOT_BIN_SUGGESTION_ENGINE_FILTERS_RANKED_ACTIVE_FILTER_H_
#define PERIDOT_BIN_SUGGESTION_ENGINE_FILTERS_RANKED_ACTIVE_FILTER_H_
#include <fuchsia/modular/cpp/fidl.h>
#include "peridot/bin/suggestion_engine/filters/suggestion_active_filter.h"
#include "peridot/bin/suggestion_engine/ranking_features/ranking_feature.h"
namespace modular {
class RankedActiveFilter : public SuggestionActiveFilter {
public:
RankedActiveFilter(std::shared_ptr<RankingFeature> ranking_feature);
~RankedActiveFilter() override;
void Filter(std::vector<std::unique_ptr<RankedSuggestion>>* const suggestions)
override;
private:
std::shared_ptr<RankingFeature> ranking_feature_;
};
} // namespace modular
#endif // PERIDOT_BIN_SUGGESTION_ENGINE_FILTERS_RANKED_ACTIVE_FILTER_H_