OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/files/file_path_watcher_kqueue.h" | 5 #include "base/files/file_path_watcher_kqueue.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
| 8 #include <stddef.h> |
8 #include <sys/param.h> | 9 #include <sys/param.h> |
9 | 10 |
10 #include "base/bind.h" | 11 #include "base/bind.h" |
11 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
12 #include "base/logging.h" | 13 #include "base/logging.h" |
13 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
14 #include "base/thread_task_runner_handle.h" | 15 #include "base/thread_task_runner_handle.h" |
15 | 16 |
16 // On some platforms these are not defined. | 17 // On some platforms these are not defined. |
17 #if !defined(EV_RECEIPT) | 18 #if !defined(EV_RECEIPT) |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 kqueue_ = -1; | 382 kqueue_ = -1; |
382 std::for_each(events_.begin(), events_.end(), ReleaseEvent); | 383 std::for_each(events_.begin(), events_.end(), ReleaseEvent); |
383 events_.clear(); | 384 events_.clear(); |
384 io_task_runner_ = NULL; | 385 io_task_runner_ = NULL; |
385 MessageLoop::current()->RemoveDestructionObserver(this); | 386 MessageLoop::current()->RemoveDestructionObserver(this); |
386 callback_.Reset(); | 387 callback_.Reset(); |
387 } | 388 } |
388 } | 389 } |
389 | 390 |
390 } // namespace base | 391 } // namespace base |
OLD | NEW |