From 34c70c9f8f89e5293cc9c6de9742adfbba5810bf Mon Sep 17 00:00:00 2001 From: "phajdan.jr@chromium.org" Date: Wed, 18 Mar 2009 14:35:58 +0000 Subject: Port DirectoryWatcher to Linux using inotify. Review URL: http://codereview.chromium.org/42037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11962 0039d316-1c4b-4281-b951-d872f2087c98 --- base/directory_watcher.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'base/directory_watcher.h') diff --git a/base/directory_watcher.h b/base/directory_watcher.h index 3048d66..d6fc534 100644 --- a/base/directory_watcher.h +++ b/base/directory_watcher.h @@ -28,8 +28,9 @@ class DirectoryWatcher { // Register interest in any changes in the directory |path|. // OnDirectoryChanged will be called back for each change within the dir. - // Returns false on error. - bool Watch(const FilePath& path, Delegate* delegate); + // If |recursive| is true, the delegate will be notified for each change + // within the directory tree starting at |path|. Returns false on error. + bool Watch(const FilePath& path, Delegate* delegate, bool recursive); private: class Impl; -- cgit v1.1