OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "base/files/file_path_watcher_kqueue.h" | 6 #include "base/files/file_path_watcher_kqueue.h" |
| 7 #include "build/build_config.h" |
7 | 8 |
8 #if !defined(OS_IOS) | 9 #if !defined(OS_IOS) |
9 #include "base/files/file_path_watcher_fsevents.h" | 10 #include "base/files/file_path_watcher_fsevents.h" |
10 #endif | 11 #endif |
11 | 12 |
12 namespace base { | 13 namespace base { |
13 | 14 |
14 namespace { | 15 namespace { |
15 | 16 |
16 class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate { | 17 class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 scoped_refptr<PlatformDelegate> impl_; | 52 scoped_refptr<PlatformDelegate> impl_; |
52 }; | 53 }; |
53 | 54 |
54 } // namespace | 55 } // namespace |
55 | 56 |
56 FilePathWatcher::FilePathWatcher() { | 57 FilePathWatcher::FilePathWatcher() { |
57 impl_ = new FilePathWatcherImpl(); | 58 impl_ = new FilePathWatcherImpl(); |
58 } | 59 } |
59 | 60 |
60 } // namespace base | 61 } // namespace base |
OLD | NEW |