#include "components/segmentation_platform/internal/ukm_data_manager_impl.h"
#include "base/check_is_test.h"
#include "base/check_op.h"
#include "base/task/sequenced_task_runner.h"
#include "components/segmentation_platform/internal/database/ukm_database_impl.h"
#include "components/segmentation_platform/internal/signals/ukm_config.h"
#include "components/segmentation_platform/internal/signals/ukm_observer.h"
#include "components/segmentation_platform/internal/signals/url_signal_handler.h"
namespace segmentation_platform {
namespace {
const base::TimeDelta kDatabaseCleanupDelayStartup = …;
const base::TimeDelta kDatabaseCleanupDelayNormal = …;
constexpr base::TimeDelta kUkmEntriesTTL = …;
}
UkmDataManagerImpl::UkmDataManagerImpl() = default;
UkmDataManagerImpl::~UkmDataManagerImpl() { … }
void UkmDataManagerImpl::InitializeForTesting(
std::unique_ptr<UkmDatabase> ukm_database,
UkmObserver* ukm_observer) { … }
void UkmDataManagerImpl::Initialize(const base::FilePath& database_path,
bool in_memory) { … }
void UkmDataManagerImpl::StartObservation(UkmObserver* ukm_observer) { … }
void UkmDataManagerImpl::InitiailizeImpl(
std::unique_ptr<UkmDatabase> ukm_database) { … }
bool UkmDataManagerImpl::IsUkmEngineEnabled() { … }
UrlSignalHandler* UkmDataManagerImpl::GetOrCreateUrlHandler() { … }
void UkmDataManagerImpl::StartObservingUkm(const UkmConfig& ukm_config) { … }
void UkmDataManagerImpl::PauseOrResumeObservation(bool pause) { … }
UkmDatabase* UkmDataManagerImpl::GetUkmDatabase() { … }
bool UkmDataManagerImpl::HasUkmDatabase() { … }
void UkmDataManagerImpl::OnEntryAdded(ukm::mojom::UkmEntryPtr entry) { … }
void UkmDataManagerImpl::OnUkmSourceUpdated(ukm::SourceId source_id,
const std::vector<GURL>& urls) { … }
void UkmDataManagerImpl::AddRef() { … }
void UkmDataManagerImpl::RemoveRef() { … }
void UkmDataManagerImpl::RunCleanupTask() { … }
}