#include "components/metrics/structured/key_data_provider_file.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/time/time.h"
#include "components/metrics/structured/lib/key_data.h"
#include "components/metrics/structured/lib/key_data_file_delegate.h"
#include "components/metrics/structured/recorder.h"
#include "components/metrics/structured/structured_metrics_validator.h"
namespace metrics::structured {
KeyDataProviderFile::KeyDataProviderFile(const base::FilePath& file_path,
base::TimeDelta write_delay)
: … { … }
KeyDataProviderFile::~KeyDataProviderFile() = default;
bool KeyDataProviderFile::IsReady() { … }
std::optional<uint64_t> KeyDataProviderFile::GetId(
const std::string& project_name) { … }
std::optional<uint64_t> KeyDataProviderFile::GetSecondaryId(
const std::string& project_name) { … }
KeyData* KeyDataProviderFile::GetKeyData(const std::string& project_name) { … }
void KeyDataProviderFile::Purge() { … }
void KeyDataProviderFile::OnKeyReady() { … }
}