#include "remoting/host/crash/crash_directory_watcher.h"
#include <string>
#include "base/files/file_enumerator.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/task/single_thread_task_runner.h"
namespace remoting {
namespace {
const base::FilePath::CharType kDumpExtension[] = …);
const base::FilePath::CharType kJsonExtension[] = …);
bool PrepareFilesForUpload(const base::FilePath& crash_directory,
const base::FilePath& crash_guid) { … }
void DeleteCrashFiles(const base::FilePath& crash_directory,
const base::FilePath& crash_guid) { … }
}
CrashDirectoryWatcher::CrashDirectoryWatcher() = default;
CrashDirectoryWatcher::~CrashDirectoryWatcher() = default;
void CrashDirectoryWatcher::Watch(base::FilePath crash_directory,
UploadCallback callback) { … }
void CrashDirectoryWatcher::OnFileChangeDetected(const base::FilePath& path,
bool error) { … }
}