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 #include "base/files/file_path_watcher.h" | 5 #include "base/files/file_path_watcher.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 | 289 |
290 void FilePathWatcherImpl::DestroyWatch() { | 290 void FilePathWatcherImpl::DestroyWatch() { |
291 watcher_.StopWatching(); | 291 watcher_.StopWatching(); |
292 FindCloseChangeNotification(handle_); | 292 FindCloseChangeNotification(handle_); |
293 handle_ = INVALID_HANDLE_VALUE; | 293 handle_ = INVALID_HANDLE_VALUE; |
294 } | 294 } |
295 | 295 |
296 } // namespace | 296 } // namespace |
297 | 297 |
298 FilePathWatcher::FilePathWatcher() { | 298 FilePathWatcher::FilePathWatcher() { |
| 299 sequence_checker_.DetachFromSequence(); |
299 impl_ = new FilePathWatcherImpl(); | 300 impl_ = new FilePathWatcherImpl(); |
300 } | 301 } |
301 | 302 |
302 } // namespace base | 303 } // namespace base |
OLD | NEW |