#include "components/segmentation_platform/internal/signals/user_action_signal_handler.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/metrics/metrics_hashes.h"
#include "components/segmentation_platform/internal/database/signal_database.h"
#include "components/segmentation_platform/internal/database/ukm_database.h"
#include "components/segmentation_platform/internal/database/ukm_types.h"
#include "components/segmentation_platform/public/proto/types.pb.h"
namespace segmentation_platform {
UserActionSignalHandler::UserActionSignalHandler(
const std::string& profile_id,
SignalDatabase* signal_database,
UkmDatabase* ukm_db)
: … { … }
UserActionSignalHandler::~UserActionSignalHandler() { … }
void UserActionSignalHandler::EnableMetrics(bool enable_metrics) { … }
void UserActionSignalHandler::SetRelevantUserActions(
std::set<uint64_t> user_actions) { … }
void UserActionSignalHandler::AddObserver(Observer* observer) { … }
void UserActionSignalHandler::RemoveObserver(Observer* observer) { … }
void UserActionSignalHandler::OnUserAction(const std::string& user_action,
base::TimeTicks action_time) { … }
void UserActionSignalHandler::OnSampleWritten(const std::string& user_action,
base::TimeTicks action_time,
bool success) { … }
}