| 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 | 11 |
| 12 namespace { | 12 namespace { |
| 13 | 13 |
| 14 class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate { | 14 class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate { |
| 15 public: | 15 public: |
| 16 bool Watch(const FilePath& path, | 16 bool Watch(const FilePath& path, |
| 17 bool recursive, | 17 bool recursive, |
| 18 const FilePathWatcher::Callback& callback) override { | 18 const FilePathWatcher::Callback& callback) override { |
| 19 return false; | 19 return false; |
| 20 } | 20 } |
| 21 | 21 |
| 22 void Cancel() override {} | 22 void Cancel() override {} |
| 23 | 23 |
| 24 void CancelOnMessageLoopThread() override {} | |
| 25 | |
| 26 protected: | 24 protected: |
| 27 ~FilePathWatcherImpl() override {} | 25 ~FilePathWatcherImpl() override {} |
| 28 }; | 26 }; |
| 29 | 27 |
| 30 } // namespace | 28 } // namespace |
| 31 | 29 |
| 32 FilePathWatcher::FilePathWatcher() { | 30 FilePathWatcher::FilePathWatcher() { |
| 33 impl_ = new FilePathWatcherImpl(); | 31 impl_ = new FilePathWatcherImpl(); |
| 34 } | 32 } |
| 35 | 33 |
| 36 } // namespace base | 34 } // namespace base |
| OLD | NEW |