Index: base/file_watcher_stub.cc |
diff --git a/base/file_watcher_stub.cc b/base/file_watcher_stub.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..99484fc94439f97c6791764607a9976c6684001f |
--- /dev/null |
+++ b/base/file_watcher_stub.cc |
@@ -0,0 +1,20 @@ |
+// Copyright (c) 2009 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. |
+ |
+// This file exists for Linux systems which don't have the inotify headers, and |
+// thus cannot build file_watcher_inotify.cc |
+ |
+#include "base/file_watcher.h" |
+ |
+class FileWatcherImpl : public FileWatcher::PlatformDelegate { |
+ public: |
+ virtual bool Watch(const FilePath& path, FileWatcher::Delegate* delegate, |
+ MessageLoop* backend_loop) { |
+ return false; |
+ } |
+}; |
+ |
+FileWatcher::FileWatcher() { |
+ impl_ = new FileWatcherImpl(); |
+} |