diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-18 14:35:58 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-18 14:35:58 +0000 |
commit | 34c70c9f8f89e5293cc9c6de9742adfbba5810bf (patch) | |
tree | 0da65c6ac92bdb7f2f68193a61efb93e8a4646b1 /base/directory_watcher.h | |
parent | b8096e69fa183c6facc254b7c7b78cb5099dd770 (diff) | |
download | chromium_src-34c70c9f8f89e5293cc9c6de9742adfbba5810bf.zip chromium_src-34c70c9f8f89e5293cc9c6de9742adfbba5810bf.tar.gz chromium_src-34c70c9f8f89e5293cc9c6de9742adfbba5810bf.tar.bz2 |
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
Diffstat (limited to 'base/directory_watcher.h')
-rw-r--r-- | base/directory_watcher.h | 5 |
1 files changed, 3 insertions, 2 deletions
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; |