Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2736)

Unified Diff: base/directory_watcher.h

Issue 42388: Enable non-recursive watches for Windows DirectoryWatcher.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: fix the typo Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/directory_watcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/directory_watcher.h
diff --git a/base/directory_watcher.h b/base/directory_watcher.h
index 12040a6f3af4079a6ce06bd5ab9bdb40763dc98d..15f24df5421a360d6a3b33a57f6c728bab56b6c0 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);
}
« no previous file with comments | « no previous file | base/directory_watcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698