Lines Matching defs:GlobalHistogramAllocator
49 // GlobalHistogramAllocator objects) are explicitly forbidden from doing
354 DCHECK_EQ(this, GlobalHistogramAllocator::Get());
628 DCHECK_NE(GlobalHistogramAllocator::Get(), this);
654 GlobalHistogramAllocator::~GlobalHistogramAllocator() = default;
657 void GlobalHistogramAllocator::CreateWithPersistentMemory(
664 new GlobalHistogramAllocator(std::make_unique<PersistentMemoryAllocator>(
669 void GlobalHistogramAllocator::CreateWithLocalMemory(
673 Set(WrapUnique(new GlobalHistogramAllocator(
679 bool GlobalHistogramAllocator::CreateWithFile(
702 Set(WrapUnique(new GlobalHistogramAllocator(
710 bool GlobalHistogramAllocator::CreateWithActiveFile(const FilePath& base_path,
727 return base::GlobalHistogramAllocator::CreateWithFile(active_path, size, id,
732 bool GlobalHistogramAllocator::CreateWithActiveFileInDir(const FilePath& dir,
743 FilePath GlobalHistogramAllocator::ConstructFilePath(const FilePath& dir,
750 FilePath GlobalHistogramAllocator::ConstructFilePathForUploadDir(
762 bool GlobalHistogramAllocator::ParseFilePath(const FilePath& path,
793 void GlobalHistogramAllocator::ConstructFilePaths(const FilePath& dir,
812 void GlobalHistogramAllocator::ConstructFilePathsForUploadDir(
836 bool GlobalHistogramAllocator::CreateSpareFile(const FilePath& spare_path,
862 bool GlobalHistogramAllocator::CreateSpareFileInDir(const FilePath& dir,
872 void GlobalHistogramAllocator::CreateWithSharedMemoryHandle(
882 Set(WrapUnique(new GlobalHistogramAllocator(
888 void GlobalHistogramAllocator::Set(
889 std::unique_ptr<GlobalHistogramAllocator> allocator) {
903 GlobalHistogramAllocator* GlobalHistogramAllocator::Get() {
904 return reinterpret_cast<GlobalHistogramAllocator*>(
909 std::unique_ptr<GlobalHistogramAllocator>
910 GlobalHistogramAllocator::ReleaseForTesting() {
911 GlobalHistogramAllocator* histogram_allocator = Get();
930 void GlobalHistogramAllocator::SetPersistentLocation(const FilePath& location) {
934 const FilePath& GlobalHistogramAllocator::GetPersistentLocation() const {
938 bool GlobalHistogramAllocator::WriteToPersistentLocation() {
963 void GlobalHistogramAllocator::DeletePersistentLocation() {
981 GlobalHistogramAllocator::GlobalHistogramAllocator(
987 void GlobalHistogramAllocator::ImportHistogramsToStatisticsRecorder() {