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

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

Issue 614103004: replace 'virtual ... OVERRIDE' with '... override' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: process base/ 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
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 9
10 #include <vector> 10 #include <vector>
(...skipping 18 matching lines...) Expand all
29 29
30 // (Re-)Initialize the event stream to start reporting events from 30 // (Re-)Initialize the event stream to start reporting events from
31 // |start_event|. 31 // |start_event|.
32 void UpdateEventStream(FSEventStreamEventId start_event); 32 void UpdateEventStream(FSEventStreamEventId start_event);
33 33
34 // Returns true if resolving the target path got a different result than 34 // Returns true if resolving the target path got a different result than
35 // last time it was done. 35 // last time it was done.
36 bool ResolveTargetPath(); 36 bool ResolveTargetPath();
37 37
38 // FilePathWatcher::PlatformDelegate overrides. 38 // FilePathWatcher::PlatformDelegate overrides.
39 virtual bool Watch(const FilePath& path, 39 bool Watch(const FilePath& path,
40 bool recursive, 40 bool recursive,
41 const FilePathWatcher::Callback& callback) OVERRIDE; 41 const FilePathWatcher::Callback& callback) override;
42 virtual void Cancel() OVERRIDE; 42 void Cancel() override;
43 43
44 private: 44 private:
45 virtual ~FilePathWatcherFSEvents(); 45 virtual ~FilePathWatcherFSEvents();
46 46
47 // Destroy the event stream. 47 // Destroy the event stream.
48 void DestroyEventStream(); 48 void DestroyEventStream();
49 49
50 // Start watching the FSEventStream. 50 // Start watching the FSEventStream.
51 void StartEventStream(FSEventStreamEventId start_event); 51 void StartEventStream(FSEventStreamEventId start_event);
52 52
53 // Cleans up and stops the event stream. 53 // Cleans up and stops the event stream.
54 virtual void CancelOnMessageLoopThread() OVERRIDE; 54 void CancelOnMessageLoopThread() override;
55 55
56 // Callback to notify upon changes. 56 // Callback to notify upon changes.
57 FilePathWatcher::Callback callback_; 57 FilePathWatcher::Callback callback_;
58 58
59 // Target path to watch (passed to callback). 59 // Target path to watch (passed to callback).
60 FilePath target_; 60 FilePath target_;
61 61
62 // Target path with all symbolic links resolved. 62 // Target path with all symbolic links resolved.
63 FilePath resolved_target_; 63 FilePath resolved_target_;
64 64
65 // Backend stream we receive event callbacks from (strong reference). 65 // Backend stream we receive event callbacks from (strong reference).
66 FSEventStreamRef fsevent_stream_; 66 FSEventStreamRef fsevent_stream_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(FilePathWatcherFSEvents); 68 DISALLOW_COPY_AND_ASSIGN(FilePathWatcherFSEvents);
69 }; 69 };
70 70
71 } // namespace base 71 } // namespace base
72 72
73 #endif // BASE_FILES_FILE_PATH_WATCHER_FSEVENTS_H_ 73 #endif // BASE_FILES_FILE_PATH_WATCHER_FSEVENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698