James Robinson | 646469d | 2014-10-03 15:33:28 -0700 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | // This file exists for Unix systems which don't have the inotify headers, and |
| 6 | // thus cannot build file_watcher_inotify.cc |
| 7 | |
| 8 | #include "base/files/file_path_watcher.h" |
| 9 | |
| 10 | namespace base { |
| 11 | |
| 12 | namespace { |
| 13 | |
| 14 | class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate { |
| 15 | public: |
James Robinson | 0fae000 | 2015-05-05 16:31:51 -0700 | [diff] [blame] | 16 | bool Watch(const FilePath& path, |
| 17 | bool recursive, |
| 18 | const FilePathWatcher::Callback& callback) override { |
James Robinson | 646469d | 2014-10-03 15:33:28 -0700 | [diff] [blame] | 19 | return false; |
| 20 | } |
| 21 | |
James Robinson | 0fae000 | 2015-05-05 16:31:51 -0700 | [diff] [blame] | 22 | void Cancel() override {} |
James Robinson | 646469d | 2014-10-03 15:33:28 -0700 | [diff] [blame] | 23 | |
James Robinson | 0fae000 | 2015-05-05 16:31:51 -0700 | [diff] [blame] | 24 | void CancelOnMessageLoopThread() override {} |
James Robinson | 646469d | 2014-10-03 15:33:28 -0700 | [diff] [blame] | 25 | |
| 26 | protected: |
James Robinson | 0fae000 | 2015-05-05 16:31:51 -0700 | [diff] [blame] | 27 | ~FilePathWatcherImpl() override {} |
James Robinson | 646469d | 2014-10-03 15:33:28 -0700 | [diff] [blame] | 28 | }; |
| 29 | |
| 30 | } // namespace |
| 31 | |
| 32 | FilePathWatcher::FilePathWatcher() { |
| 33 | impl_ = new FilePathWatcherImpl(); |
| 34 | } |
| 35 | |
| 36 | } // namespace base |