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 <fcntl.h> | 7 #include <fcntl.h> |
8 #include <sys/event.h> | 8 #include <sys/event.h> |
9 #include <sys/param.h> | 9 #include <sys/param.h> |
10 | 10 |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/file_util.h" | 14 #include "base/file_util.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
17 #include "base/message_loop/message_loop_proxy.h" | 17 #include "base/message_loop/message_loop_proxy.h" |
18 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
19 | 19 |
20 // On some platforms these are not defined. | 20 // On some platforms these are not defined. |
21 #if !defined(EV_RECEIPT) | 21 #if !defined(EV_RECEIPT) |
22 #define EV_RECEIPT 0 | 22 #define EV_RECEIPT 0 |
23 #endif | 23 #endif |
24 #if !defined(O_EVTONLY) | 24 #if !defined(O_EVTONLY) |
25 #define O_EVTONLY O_RDONLY | 25 #define O_EVTONLY O_RDONLY |
26 #endif | 26 #endif |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 } | 509 } |
510 } | 510 } |
511 | 511 |
512 } // namespace | 512 } // namespace |
513 | 513 |
514 FilePathWatcher::FilePathWatcher() { | 514 FilePathWatcher::FilePathWatcher() { |
515 impl_ = new FilePathWatcherImpl(); | 515 impl_ = new FilePathWatcherImpl(); |
516 } | 516 } |
517 | 517 |
518 } // namespace base | 518 } // namespace base |
OLD | NEW |