#include "chrome/browser/upgrade_detector/directory_monitor.h"
#include <memory>
#include <utility>
#include "base/base_paths.h"
#include "base/check.h"
#include "base/files/file_path.h"
#include "base/files/file_path_watcher.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/memory/scoped_refptr.h"
#include "base/path_service.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "build/build_config.h"
#include "chrome/browser/upgrade_detector/installed_version_monitor.h"
#if BUILDFLAG(IS_MAC)
#include "base/apple/bundle_locations.h"
#endif
namespace {
base::FilePath GetDefaultMonitorLocation() { … }
}
DirectoryMonitor::DirectoryMonitor(base::FilePath install_dir)
: … { … }
DirectoryMonitor::~DirectoryMonitor() { … }
void DirectoryMonitor::Start(Callback on_change_callback) { … }
std::unique_ptr<InstalledVersionMonitor> InstalledVersionMonitor::Create() { … }