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

Side by Side Diff: base/files/file_path_watcher.cc

Issue 369703003: Reduce usage of MessageLoopProxy in base/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 2 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
« no previous file with comments | « base/files/file_path_watcher.h ('k') | base/files/file_path_watcher_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // Cross platform methods for FilePathWatcher. See the various platform 5 // Cross platform methods for FilePathWatcher. See the various platform
6 // specific implementation files, too. 6 // specific implementation files, too.
7 7
8 #include "base/files/file_path_watcher.h" 8 #include "base/files/file_path_watcher.h"
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/message_loop/message_loop.h"
12 11
13 #if defined(OS_MACOSX) && !defined(OS_IOS) 12 #if defined(OS_MACOSX) && !defined(OS_IOS)
14 #include "base/mac/mac_util.h" 13 #include "base/mac/mac_util.h"
15 #endif 14 #endif
16 15
17 namespace base { 16 namespace base {
18 17
19 FilePathWatcher::~FilePathWatcher() { 18 FilePathWatcher::~FilePathWatcher() {
20 impl_->Cancel(); 19 impl_->Cancel();
21 } 20 }
(...skipping 25 matching lines...) Expand all
47 } 46 }
48 47
49 bool FilePathWatcher::Watch(const FilePath& path, 48 bool FilePathWatcher::Watch(const FilePath& path,
50 bool recursive, 49 bool recursive,
51 const Callback& callback) { 50 const Callback& callback) {
52 DCHECK(path.IsAbsolute()); 51 DCHECK(path.IsAbsolute());
53 return impl_->Watch(path, recursive, callback); 52 return impl_->Watch(path, recursive, callback);
54 } 53 }
55 54
56 } // namespace base 55 } // namespace base
OLDNEW
« no previous file with comments | « base/files/file_path_watcher.h ('k') | base/files/file_path_watcher_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698