HomeSort by relevance Sort by last modified time
    Searched refs:Watch (Results 1 - 8 of 8) sorted by null

  /external/chromium/base/
directory_watcher.h 32 // Any background operations will be ran on |backend_loop|, or inside Watch
37 // Note: on Windows you may got more notifications for non-recursive watch
41 bool Watch(const FilePath& path, Delegate* delegate,
43 return impl_->Watch(path, delegate, backend_loop, recursive);
49 virtual bool Watch(const FilePath& path, Delegate* delegate,
directory_watcher_stub.cc 12 virtual bool Watch(const FilePath& path, DirectoryWatcher::Delegate* delegate,
object_watcher.h 59 // Returns true if the watch was started. Otherwise, false is returned.
63 // Stops watching. Does nothing if the watch has already completed. If the
64 // watch is still active, then it is canceled, and the associated delegate is
67 // Returns true if the watch was canceled. Otherwise, false is returned.
83 struct Watch;
84 Watch* watch_;
object_watcher.cc 13 struct ObjectWatcher::Watch : public Task {
49 Watch* watch = new Watch; local
50 watch->watcher = this;
51 watch->object = object;
52 watch->origin_loop = MessageLoop::current();
53 watch->delegate = delegate;
54 watch->did_signal = false;
60 if (!RegisterWaitForSingleObject(&watch->wait_object, object, DoneWaiting
121 Watch* watch = static_cast<Watch*>(param); local
    [all...]
directory_watcher_unittest.cc 161 ASSERT_TRUE(watcher.Watch(test_dir_, &delegate, NULL, false));
176 ASSERT_TRUE(watcher.Watch(test_dir_, &delegate, NULL, false));
191 ASSERT_TRUE(watcher.Watch(test_dir_, &delegate, NULL, false));
205 ASSERT_TRUE(watcher.Watch(test_dir_, &delegate, NULL, false));
207 // And then let it fall out of scope, clearing its watch.
220 // Verify that modifications to a subdirectory are noticed by recursive watch.
223 ASSERT_TRUE(watcher.Watch(test_dir_, &delegate, NULL, true));
241 // when creating a file in a subdir even with a non-recursive watch.
247 // by a not-recursive watch.
250 ASSERT_TRUE(watcher.Watch(test_dir_, &delegate, NULL, false))
    [all...]
directory_watcher_inotify.cc 39 typedef int Watch; // Watch descriptor used by AddWatch and RemoveWatch.
40 static const Watch kInvalidWatch = -1;
42 // Watch |path| for changes. |watcher| will be notified on each change.
44 Watch AddWatch(const FilePath& path, DirectoryWatcherImpl* watcher);
46 // Remove |watch|. Returns true on success.
47 bool RemoveWatch(Watch watch, DirectoryWatcherImpl* watcher);
61 base::hash_map<Watch, WatcherSet> watchers_;
63 // For each watch we also want to know the path it's watching
296 Watch watch = inotify_add_watch(inotify_fd_, path.value().c_str(), local
418 InotifyReader::Watch watch = local
    [all...]
directory_watcher_win.cc 19 virtual bool Watch(const FilePath& path, DirectoryWatcher::Delegate* delegate,
34 // ObjectWatcher to watch handle_ for events.
47 bool DirectoryWatcherImpl::Watch(const FilePath& path,
50 DCHECK(path_.value().empty()); // Can only watch one path.
directory_watcher_mac.cc 30 virtual bool Watch(const FilePath& path, DirectoryWatcher::Delegate* delegate,
52 // Indicates recursive watch.
73 bool DirectoryWatcherImpl::Watch(const FilePath& path,
77 DCHECK(path_.value().empty()); // Can only watch one path.

Completed in 47 milliseconds