This source file includes following definitions.
- Watch
- Cancel
- CancelOnMessageLoopThread
#include "base/files/file_path_watcher.h"
namespace base {
namespace {
class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate {
public:
virtual bool Watch(const FilePath& path,
bool recursive,
const FilePathWatcher::Callback& callback) OVERRIDE {
return false;
}
virtual void Cancel() OVERRIDE {}
virtual void CancelOnMessageLoopThread() OVERRIDE {}
protected:
virtual ~FilePathWatcherImpl() {}
};
}
FilePathWatcher::FilePathWatcher() {
impl_ = new FilePathWatcherImpl();
}
}