#include "components/segmentation_platform/internal/signals/signal_filter_processor.h"
#include <set>
#include "base/logging.h"
#include "components/segmentation_platform/internal/database/segment_info_database.h"
#include "components/segmentation_platform/internal/database/signal_storage_config.h"
#include "components/segmentation_platform/internal/database/storage_service.h"
#include "components/segmentation_platform/internal/metadata/metadata_utils.h"
#include "components/segmentation_platform/internal/proto/model_prediction.pb.h"
#include "components/segmentation_platform/internal/signals/histogram_signal_handler.h"
#include "components/segmentation_platform/internal/signals/history_service_observer.h"
#include "components/segmentation_platform/internal/signals/ukm_config.h"
#include "components/segmentation_platform/internal/signals/user_action_signal_handler.h"
#include "components/segmentation_platform/internal/stats.h"
#include "components/segmentation_platform/internal/ukm_data_manager.h"
#include "components/segmentation_platform/public/proto/model_metadata.pb.h"
#include "components/segmentation_platform/public/proto/types.pb.h"
namespace segmentation_platform {
namespace {
class FilterExtractor { … };
}
SignalFilterProcessor::SignalFilterProcessor(
StorageService* storage_service,
UserActionSignalHandler* user_action_signal_handler,
HistogramSignalHandler* histogram_signal_handler,
HistoryServiceObserver* history_observer,
const base::flat_set<SegmentId>& segment_ids)
: … { … }
SignalFilterProcessor::~SignalFilterProcessor() = default;
void SignalFilterProcessor::OnSignalListUpdated() { … }
void SignalFilterProcessor::FilterSignals(
std::unique_ptr<SegmentInfoDatabase::SegmentInfoList> segment_infos) { … }
void SignalFilterProcessor::EnableMetrics(bool enable_metrics) { … }
}