#include "base/files/important_file_writer_cleaner.h"
#include <algorithm>
#include <functional>
#include <iterator>
#include <utility>
#include "base/files/file_enumerator.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/no_destructor.h"
#include "base/process/process.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "base/time/time.h"
#include "build/build_config.h"
namespace base {
namespace {
base::Time GetUpperBoundTime() { … }
}
ImportantFileWriterCleaner& ImportantFileWriterCleaner::GetInstance() { … }
void ImportantFileWriterCleaner::AddDirectory(const FilePath& directory) { … }
void ImportantFileWriterCleaner::Initialize() { … }
void ImportantFileWriterCleaner::Start() { … }
void ImportantFileWriterCleaner::Stop() { … }
void ImportantFileWriterCleaner::UninitializeForTesting() { … }
base::Time ImportantFileWriterCleaner::GetUpperBoundTimeForTest() const { … }
ImportantFileWriterCleaner::ImportantFileWriterCleaner()
: … { … }
void ImportantFileWriterCleaner::AddDirectoryImpl(const FilePath& directory) { … }
void ImportantFileWriterCleaner::ScheduleTask() { … }
bool ImportantFileWriterCleaner::CleanInBackground(
Time upper_bound_time,
std::vector<FilePath> directories,
std::atomic_bool& stop_flag) { … }
void ImportantFileWriterCleaner::OnBackgroundTaskFinished(
bool processing_completed) { … }
void ImportantFileWriterCleaner::DoStop() { … }
}