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.h" | 5 #include "base/files/file_path_watcher.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <string.h> | 8 #include <string.h> |
9 #include <sys/inotify.h> | 9 #include <sys/inotify.h> |
10 #include <sys/ioctl.h> | 10 #include <sys/ioctl.h> |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "base/file_path.h" | 21 #include "base/file_path.h" |
22 #include "base/file_util.h" | 22 #include "base/file_util.h" |
23 #include "base/hash_tables.h" | 23 #include "base/hash_tables.h" |
24 #include "base/lazy_instance.h" | 24 #include "base/lazy_instance.h" |
25 #include "base/location.h" | 25 #include "base/location.h" |
26 #include "base/logging.h" | 26 #include "base/logging.h" |
27 #include "base/memory/scoped_ptr.h" | 27 #include "base/memory/scoped_ptr.h" |
28 #include "base/message_loop.h" | 28 #include "base/message_loop.h" |
29 #include "base/message_loop_proxy.h" | 29 #include "base/message_loop_proxy.h" |
30 #include "base/synchronization/lock.h" | 30 #include "base/synchronization/lock.h" |
31 #include "base/task.h" | |
32 #include "base/threading/thread.h" | 31 #include "base/threading/thread.h" |
33 | 32 |
34 namespace base { | 33 namespace base { |
35 namespace files { | 34 namespace files { |
36 | 35 |
37 namespace { | 36 namespace { |
38 | 37 |
39 class FilePathWatcherImpl; | 38 class FilePathWatcherImpl; |
40 | 39 |
41 // Singleton to manage all inotify watches. | 40 // Singleton to manage all inotify watches. |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 } | 479 } |
481 | 480 |
482 } // namespace | 481 } // namespace |
483 | 482 |
484 FilePathWatcher::FilePathWatcher() { | 483 FilePathWatcher::FilePathWatcher() { |
485 impl_ = new FilePathWatcherImpl(); | 484 impl_ = new FilePathWatcherImpl(); |
486 } | 485 } |
487 | 486 |
488 } // namespace files | 487 } // namespace files |
489 } // namespace base | 488 } // namespace base |
OLD | NEW |