Home | History | Annotate | Download | only in files

Lines Matching defs:Watcher

33   // If the MessageLoopForIO is deleted before Watcher::StartWatching() runs,
35 // Watcher::StartWatching() runs but before the DeleteSoon task runs,
36 // |watcher_| is deleted from Watcher::WillDestroyCurrentMessageLoop().
43 class FileDescriptorWatcher::Controller::Watcher
44 : public MessageLoopForIO::Watcher,
47 Watcher(WeakPtr<Controller> controller, MessageLoopForIO::Mode mode, int fd);
48 ~Watcher() override;
55 // MessageLoopForIO::Watcher:
70 // The Controller that created this Watcher.
73 // Whether this Watcher is notified when |fd_| becomes readable or writable
84 // Whether this Watcher was registered as a DestructionObserver on the
88 DISALLOW_COPY_AND_ASSIGN(Watcher);
91 FileDescriptorWatcher::Controller::Watcher::Watcher(
103 FileDescriptorWatcher::Controller::Watcher::~Watcher() {
108 void FileDescriptorWatcher::Controller::Watcher::StartWatching() {
120 void FileDescriptorWatcher::Controller::Watcher::OnFileCanReadWithoutBlocking(
131 void FileDescriptorWatcher::Controller::Watcher::OnFileCanWriteWithoutBlocking(
142 void FileDescriptorWatcher::Controller::Watcher::
146 // A Watcher is owned by a Controller. When the Controller is deleted, it
147 // transfers ownership of the Watcher to a delete task posted to the
149 // runs, the following line takes care of deleting the Watcher.
162 watcher_ = MakeUnique<Watcher>(weak_factory_.GetWeakPtr(), mode, fd);
173 FROM_HERE, Bind(&Watcher::StartWatching, Unretained(watcher_.get())));