OLD | NEW |
| (Empty) |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // Cross platform methods for FilePathWatcher. See the various platform | |
6 // specific implementaiton files, too. | |
7 | |
8 #include "chrome/browser/file_path_watcher.h" | |
9 | |
10 FilePathWatcher::~FilePathWatcher() { | |
11 impl_->Cancel(); | |
12 } | |
13 | |
14 bool FilePathWatcher::Watch(const FilePath& path, | |
15 Delegate* delegate) { | |
16 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); | |
17 DCHECK(path.IsAbsolute()); | |
18 return impl_->Watch(path, delegate); | |
19 } | |
OLD | NEW |