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 #include "base/macros.h" 11 #include "base/memory/ptr_util.h" 12 13 namespace base { 14 15 namespace { 16 17 class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate { 18 public: 19 FilePathWatcherImpl() = default; 20 ~FilePathWatcherImpl() override = default; 21 Watch(const FilePath & path,bool recursive,const FilePathWatcher::Callback & callback)22 bool Watch(const FilePath& path, 23 bool recursive, 24 const FilePathWatcher::Callback& callback) override { 25 return false; 26 } 27 Cancel()28 void Cancel() override {} 29 30 private: 31 DISALLOW_COPY_AND_ASSIGN(FilePathWatcherImpl); 32 }; 33 34 } // namespace 35 FilePathWatcher()36FilePathWatcher::FilePathWatcher() { 37 sequence_checker_.DetachFromSequence(); 38 impl_ = std::make_unique<FilePathWatcherImpl>(); 39 } 40 41 } // namespace base 42