Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(672)

Unified Diff: base/file_path_component_watcher.cc

Issue 6660001: Getting service process on Mac to handle having things moved/changed underneath it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed up phajdan's comments, got things working properly Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698