Home
last modified time | relevance | path

Searched refs:ImportantFileWriter (Results 1 – 6 of 6) sorted by relevance

/external/libchrome/base/files/
Dimportant_file_writer.cc113 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 …]
Dimportant_file_writer_unittest.cc38 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 …]
Dimportant_file_writer.h38 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/
Dpersistent_histogram_storage.cc97 if (!ImportantFileWriter::WriteFileAtomically(file_path, contents)) { in ~PersistentHistogramStorage()
Dpersistent_histogram_allocator.cc952 if (!ImportantFileWriter::WriteFileAtomically(persistent_location_, in WriteToPersistentLocation()
/external/libbrillo/brillo/
Dkey_value_store.cc82 return base::ImportantFileWriter::WriteFileAtomically(path, SaveToString()); in Save()