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

Side by Side Diff: content/common/file_path_watcher/file_path_watcher.cc

Issue 6793020: Move FilePathWatcher to base/files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use ::operator<< Created 9 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // Cross platform methods for FilePathWatcher. See the various platform
6 // specific implementation files, too.
7
8 #include "content/common/file_path_watcher/file_path_watcher.h"
9
10 #include "base/logging.h"
11 #include "base/message_loop.h"
12
13 FilePathWatcher::~FilePathWatcher() {
14 impl_->Cancel();
15 }
16
17 bool FilePathWatcher::Watch(const FilePath& path, Delegate* delegate) {
18 DCHECK(path.IsAbsolute());
19 return impl_->Watch(path, delegate);
20 }
21
22 FilePathWatcher::PlatformDelegate::PlatformDelegate(): cancelled_(false) {
23 }
24
25 FilePathWatcher::PlatformDelegate::~PlatformDelegate() {
26 DCHECK(is_cancelled());
27 }
28
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698