summaryrefslogtreecommitdiffstats
path: root/base/directory_watcher.h
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-24 15:26:09 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-24 15:26:09 +0000
commit5c31aa6e312dccfaccf92e237062273bfd995369 (patch)
tree475821ef3934b273bcf2b3a4094f0c431f572270 /base/directory_watcher.h
parent0f43a8f1c138bd8d850a606ff028df8f6c30ba31 (diff)
downloadchromium_src-5c31aa6e312dccfaccf92e237062273bfd995369.zip
chromium_src-5c31aa6e312dccfaccf92e237062273bfd995369.tar.gz
chromium_src-5c31aa6e312dccfaccf92e237062273bfd995369.tar.bz2
Enable non-recursive watches for Windows DirectoryWatcher.
- enable test for it on Windows - clean up directory_watcher_unittest.cc http://crbug.com/5072 Review URL: http://codereview.chromium.org/42388 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12358 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/directory_watcher.h')
-rw-r--r--base/directory_watcher.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/directory_watcher.h b/base/directory_watcher.h
index 12040a6..15f24df 100644
--- a/base/directory_watcher.h
+++ b/base/directory_watcher.h
@@ -29,6 +29,10 @@ class DirectoryWatcher {
// OnDirectoryChanged will be called back for each change within the dir.
// If |recursive| is true, the delegate will be notified for each change
// within the directory tree starting at |path|. Returns false on error.
+ //
+ // Note: on Windows the non-recursive watch will also send a notification
+ // when you create a file in a subdirectory (but won't send notifications
+ // for further modifications).
bool Watch(const FilePath& path, Delegate* delegate, bool recursive) {
return impl_->Watch(path, delegate, recursive);
}