OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 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 // Cross platform methods for FilePathWatcher. See the various platform |
| 6 // specific implementation files, too. |
| 7 |
| 8 #include "base/file_path_component_watcher.h" |
| 9 #include "base/logging.h" |
| 10 |
| 11 namespace base { |
| 12 |
| 13 FilePathComponentWatcher::~FilePathComponentWatcher() { |
| 14 impl_->Cancel(); |
| 15 } |
| 16 |
| 17 bool FilePathComponentWatcher::Watch(const FilePath& path, |
| 18 Delegate* delegate) { |
| 19 DCHECK(path.IsAbsolute()); |
| 20 return impl_->Watch(path, delegate); |
| 21 } |
| 22 |
| 23 } // namespace base |
OLD | NEW |