OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file exists for Linux systems which don't have the inotify headers, and | 5 // This file exists for Linux systems which don't have the inotify headers, and |
6 // thus cannot build file_watcher_inotify.cc | 6 // thus cannot build file_watcher_inotify.cc |
7 | 7 |
8 #include "base/file_watcher.h" | 8 #include "chrome/browser/file_watcher.h" |
9 | 9 |
10 class FileWatcherImpl : public FileWatcher::PlatformDelegate { | 10 class FileWatcherImpl : public FileWatcher::PlatformDelegate { |
11 public: | 11 public: |
12 virtual bool Watch(const FilePath& path, FileWatcher::Delegate* delegate, | 12 virtual bool Watch(const FilePath& path, FileWatcher::Delegate* delegate) { |
13 MessageLoop* backend_loop) { | |
14 return false; | 13 return false; |
15 } | 14 } |
16 }; | 15 }; |
17 | 16 |
18 FileWatcher::FileWatcher() { | 17 FileWatcher::FileWatcher() { |
19 impl_ = new FileWatcherImpl(); | 18 impl_ = new FileWatcherImpl(); |
20 } | 19 } |
OLD | NEW |