#include "components/sync_user_events/user_event_service_impl.h"
#include <utility>
#include "base/metrics/histogram_functions.h"
#include "base/rand_util.h"
#include "base/time/time.h"
#include "components/sync_user_events/user_event_sync_bridge.h"
UserEventSpecifics;
namespace syncer {
namespace {
enum NavigationPresence { … };
NavigationPresence GetNavigationPresence(
UserEventSpecifics::EventCase event_case) { … }
bool NavigationPresenceValid(UserEventSpecifics::EventCase event_case,
bool has_navigation_id) { … }
enum class EventTypeForUMA { … };
EventTypeForUMA GetEventTypeForUMA(UserEventSpecifics::EventCase event_case) { … }
}
UserEventServiceImpl::UserEventServiceImpl(
std::unique_ptr<UserEventSyncBridge> bridge)
: … { … }
UserEventServiceImpl::~UserEventServiceImpl() = default;
void UserEventServiceImpl::Shutdown() { … }
void UserEventServiceImpl::RecordUserEvent(
std::unique_ptr<UserEventSpecifics> specifics) { … }
void UserEventServiceImpl::RecordUserEvent(
const UserEventSpecifics& specifics) { … }
base::WeakPtr<syncer::DataTypeControllerDelegate>
UserEventServiceImpl::GetControllerDelegate() { … }
bool UserEventServiceImpl::ShouldRecordEvent(
const UserEventSpecifics& specifics) { … }
}