#include "components/segmentation_platform/internal/database/ukm_database_impl.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/thread_pool.h"
#include "components/segmentation_platform/internal/database/ukm_database_backend.h"
namespace segmentation_platform {
UkmDatabaseImpl::UkmDatabaseImpl(const base::FilePath& database_path,
bool in_memory)
: … { … }
UkmDatabaseImpl::~UkmDatabaseImpl() { … }
void UkmDatabaseImpl::InitDatabase(SuccessCallback callback) { … }
void UkmDatabaseImpl::StoreUkmEntry(ukm::mojom::UkmEntryPtr ukm_entry) { … }
void UkmDatabaseImpl::UpdateUrlForUkmSource(ukm::SourceId source_id,
const GURL& url,
bool is_validated,
const std::string& profile_id) { … }
void UkmDatabaseImpl::OnUrlValidated(const GURL& url,
const std::string& profile_id) { … }
void UkmDatabaseImpl::RemoveUrls(const std::vector<GURL>& urls, bool all_urls) { … }
void UkmDatabaseImpl::AddUmaMetric(const std::string& profile_id,
const UmaMetricEntry& row) { … }
void UkmDatabaseImpl::RunReadOnlyQueries(QueryList&& queries,
QueryCallback callback) { … }
void UkmDatabaseImpl::DeleteEntriesOlderThan(base::Time time) { … }
void UkmDatabaseImpl::CommitTransactionForTesting() { … }
}