Index: base/file_path_component_watcher.cc |
diff --git a/base/file_path_component_watcher.cc b/base/file_path_component_watcher.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0df7f928735ce1c2b1d65ae1150104edadf321f3 |
--- /dev/null |
+++ b/base/file_path_component_watcher.cc |
@@ -0,0 +1,23 @@ |
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+// Cross platform methods for FilePathWatcher. See the various platform |
+// specific implementation files, too. |
+ |
+#include "base/file_path_component_watcher.h" |
+#include "base/logging.h" |
+ |
+namespace base { |
+ |
+FilePathComponentWatcher::~FilePathComponentWatcher() { |
+ impl_->Cancel(); |
+} |
+ |
+bool FilePathComponentWatcher::Watch(const FilePath& path, |
+ Delegate* delegate) { |
+ DCHECK(path.IsAbsolute()); |
+ return impl_->Watch(path, delegate); |
+} |
+ |
+} // namespace base |