Searched refs:ImportantFileWriter (Results 1 – 6 of 6) sorted by relevance
/external/libchrome/base/files/ |
D | important_file_writer.cc | 113 ImportantFileWriter::WriteFileAtomically(path, *data, histogram_suffix); in WriteScopedStringToFileAtomically() 135 bool ImportantFileWriter::WriteFileAtomically(const FilePath& path, in WriteFileAtomically() 215 ImportantFileWriter::ImportantFileWriter( in ImportantFileWriter() function in base::ImportantFileWriter 219 : ImportantFileWriter(path, in ImportantFileWriter() 224 ImportantFileWriter::ImportantFileWriter( in ImportantFileWriter() function in base::ImportantFileWriter 238 ImportantFileWriter::~ImportantFileWriter() { in ~ImportantFileWriter() 246 bool ImportantFileWriter::HasPendingWrite() const { in HasPendingWrite() 251 void ImportantFileWriter::WriteNow(std::unique_ptr<std::string> data) { in WriteNow() 274 void ImportantFileWriter::ScheduleWrite(DataSerializer* serializer) { in ScheduleWrite() 283 Bind(&ImportantFileWriter::DoScheduledWrite, Unretained(this))); in ScheduleWrite() [all …]
|
D | important_file_writer_unittest.cc | 38 class DataSerializer : public ImportantFileWriter::DataSerializer { 52 class FailingDataSerializer : public ImportantFileWriter::DataSerializer { 69 void ObserveNextWriteCallbacks(ImportantFileWriter* writer); 94 ImportantFileWriter* writer) { in ObserveNextWriteCallbacks() 134 ImportantFileWriter writer(file_, ThreadTaskRunnerHandle::Get()); in TEST_F() 146 ImportantFileWriter writer(file_, ThreadTaskRunnerHandle::Get()); in TEST_F() 185 ImportantFileWriter writer(FilePath().AppendASCII("bad/../path"), in TEST_F() 203 ImportantFileWriter writer(file_, file_writer_thread.task_runner()); in TEST_F() 235 ImportantFileWriter writer(file_, ThreadTaskRunnerHandle::Get(), in TEST_F() 254 ImportantFileWriter writer(file_, ThreadTaskRunnerHandle::Get()); in TEST_F() [all …]
|
D | important_file_writer.h | 38 class BASE_EXPORT ImportantFileWriter { 65 ImportantFileWriter(const FilePath& path, 70 ImportantFileWriter(const FilePath& path, 77 ~ImportantFileWriter(); 155 WeakPtrFactory<ImportantFileWriter> weak_factory_; 157 DISALLOW_COPY_AND_ASSIGN(ImportantFileWriter);
|
/external/libchrome/base/metrics/ |
D | persistent_histogram_storage.cc | 97 if (!ImportantFileWriter::WriteFileAtomically(file_path, contents)) { in ~PersistentHistogramStorage()
|
D | persistent_histogram_allocator.cc | 952 if (!ImportantFileWriter::WriteFileAtomically(persistent_location_, in WriteToPersistentLocation()
|
/external/libbrillo/brillo/ |
D | key_value_store.cc | 82 return base::ImportantFileWriter::WriteFileAtomically(path, SaveToString()); in Save()
|