OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 Unix systems which don't have the inotify headers, and | 5 // This file exists for Unix 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 "chrome/common/file_path_watcher/file_path_watcher.h" | 8 #include "base/files/file_path_watcher.h" |
9 | 9 |
10 class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate { | 10 namespace { |
11 | |
12 class FilePathWatcherImpl : | |
13 public base::files::FilePathWatcher::PlatformDelegate { | |
11 public: | 14 public: |
12 virtual bool Watch(const FilePath& path, | 15 virtual bool Watch(const FilePath& path, |
13 FileWatcher::Delegate* delegate, | 16 FileWatcher::Delegate* delegate, |
dmac
2011/04/05 19:55:51
do you need base::files::FileWatcher::Delegate
Craig
2011/04/06 15:27:30
Fixed with 'using' to match the other changes.
| |
14 base::MessageLoopProxy*) OVERRIDE { | 17 base::MessageLoopProxy*) OVERRIDE { |
15 return false; | 18 return false; |
16 } | 19 } |
17 }; | 20 }; |
18 | 21 |
19 FilePathWatcher::FilePathWatcher() { | 22 } // namespace |
23 | |
24 base::files::FilePathWatcher::FilePathWatcher() { | |
20 impl_ = new FilePathWatcherImpl(); | 25 impl_ = new FilePathWatcherImpl(); |
21 } | 26 } |
OLD | NEW |