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 // This file exists for Unix systems which don't have the inotify headers, and | 5 // This file exists for Unix systems which don't have the inotify headers, and |
6 // thus cannot build file_watcher_inotify.cc | 6 // thus cannot build file_watcher_inotify.cc |
7 | 7 |
8 #include "base/files/file_path_watcher.h" | 8 #include "base/files/file_path_watcher.h" |
9 | 9 |
10 namespace base { | 10 namespace base { |
11 namespace files { | 11 namespace files { |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate { | 15 class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate { |
16 public: | 16 public: |
17 virtual bool Watch(const FilePath& path, | 17 virtual bool Watch(const FilePath& path, |
18 bool recursive, | 18 bool recursive, |
19 FilePathWatcher::Delegate* delegate) OVERRIDE { | 19 const FilePathWatcher::Callback& callback) OVERRIDE { |
20 return false; | 20 return false; |
21 } | 21 } |
22 | 22 |
23 virtual void Cancel() OVERRIDE {} | 23 virtual void Cancel() OVERRIDE {} |
24 | 24 |
25 virtual void CancelOnMessageLoopThread() OVERRIDE {} | 25 virtual void CancelOnMessageLoopThread() OVERRIDE {} |
26 | 26 |
27 protected: | 27 protected: |
28 virtual ~FilePathWatcherImpl() {} | 28 virtual ~FilePathWatcherImpl() {} |
29 }; | 29 }; |
30 | 30 |
31 } // namespace | 31 } // namespace |
32 | 32 |
33 FilePathWatcher::FilePathWatcher() { | 33 FilePathWatcher::FilePathWatcher() { |
34 impl_ = new FilePathWatcherImpl(); | 34 impl_ = new FilePathWatcherImpl(); |
35 } | 35 } |
36 | 36 |
37 } // namespace files | 37 } // namespace files |
38 } // namespace base | 38 } // namespace base |
OLD | NEW |