#include "base/files/file_path_watcher.h"
#include <memory>
#include "base/check.h"
#include "base/notimplemented.h"
#include "base/task/sequenced_task_runner.h"
namespace base {
namespace {
class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate {
public:
FilePathWatcherImpl() = default;
FilePathWatcherImpl(const FilePathWatcherImpl&) = delete;
FilePathWatcherImpl& operator=(const FilePathWatcherImpl&) = delete;
~FilePathWatcherImpl() override = default;
bool Watch(const FilePath& path,
Type type,
const FilePathWatcher::Callback& callback) override {
DCHECK(!callback.is_null());
NOTIMPLEMENTED_LOG_ONCE();
return false;
}
void Cancel() override { set_cancelled(); }
};
}
FilePathWatcher::FilePathWatcher()
: FilePathWatcher(std::make_unique<FilePathWatcherImpl>()) {}
}