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

Side by Side Diff: base/files/file_path_watcher_fsevents.h

Issue 2372513005: Remove FilePathWatcher::PlatformDelegate::CancelOnMessageLoopThread(). (Closed)
Patch Set: self-review Created 4 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
« no previous file with comments | « base/files/file_path_watcher.cc ('k') | base/files/file_path_watcher_kqueue.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef BASE_FILES_FILE_PATH_WATCHER_FSEVENTS_H_ 5 #ifndef BASE_FILES_FILE_PATH_WATCHER_FSEVENTS_H_
6 #define BASE_FILES_FILE_PATH_WATCHER_FSEVENTS_H_ 6 #define BASE_FILES_FILE_PATH_WATCHER_FSEVENTS_H_
7 7
8 #include <CoreServices/CoreServices.h> 8 #include <CoreServices/CoreServices.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 void OnFilePathsChanged(const std::vector<FilePath>& paths); 47 void OnFilePathsChanged(const std::vector<FilePath>& paths);
48 48
49 // Called on the message_loop() thread to dispatch path events. Can't access 49 // Called on the message_loop() thread to dispatch path events. Can't access
50 // target_ and resolved_target_ directly as those are modified on the 50 // target_ and resolved_target_ directly as those are modified on the
51 // libdispatch thread. 51 // libdispatch thread.
52 void DispatchEvents(const std::vector<FilePath>& paths, 52 void DispatchEvents(const std::vector<FilePath>& paths,
53 const FilePath& target, 53 const FilePath& target,
54 const FilePath& resolved_target); 54 const FilePath& resolved_target);
55 55
56 // Cleans up and stops the event stream. 56 // Cleans up and stops the event stream.
57 void CancelOnMessageLoopThread() override; 57 void CancelOnMessageLoopThread();
58 58
59 // (Re-)Initialize the event stream to start reporting events from 59 // (Re-)Initialize the event stream to start reporting events from
60 // |start_event|. 60 // |start_event|.
61 void UpdateEventStream(FSEventStreamEventId start_event); 61 void UpdateEventStream(FSEventStreamEventId start_event);
62 62
63 // Returns true if resolving the target path got a different result than 63 // Returns true if resolving the target path got a different result than
64 // last time it was done. 64 // last time it was done.
65 bool ResolveTargetPath(); 65 bool ResolveTargetPath();
66 66
67 // Report an error watching the given target. 67 // Report an error watching the given target.
(...skipping 23 matching lines...) Expand all
91 // Backend stream we receive event callbacks from (strong reference). 91 // Backend stream we receive event callbacks from (strong reference).
92 // (Only accessed from the libdispatch queue.) 92 // (Only accessed from the libdispatch queue.)
93 FSEventStreamRef fsevent_stream_; 93 FSEventStreamRef fsevent_stream_;
94 94
95 DISALLOW_COPY_AND_ASSIGN(FilePathWatcherFSEvents); 95 DISALLOW_COPY_AND_ASSIGN(FilePathWatcherFSEvents);
96 }; 96 };
97 97
98 } // namespace base 98 } // namespace base
99 99
100 #endif // BASE_FILES_FILE_PATH_WATCHER_FSEVENTS_H_ 100 #endif // BASE_FILES_FILE_PATH_WATCHER_FSEVENTS_H_
OLDNEW
« no previous file with comments | « base/files/file_path_watcher.cc ('k') | base/files/file_path_watcher_kqueue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698