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

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

Issue 1549853002: Switch to standard integer types in base/files/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years 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_fsevents.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 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 10
10 #include <vector> 11 #include <vector>
11 12
12 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
13 #include "base/files/file_path_watcher.h" 14 #include "base/files/file_path_watcher.h"
15 #include "base/macros.h"
14 16
15 namespace base { 17 namespace base {
16 18
17 // Mac-specific file watcher implementation based on FSEvents. 19 // Mac-specific file watcher implementation based on FSEvents.
18 // There are trade-offs between the FSEvents implementation and a kqueue 20 // There are trade-offs between the FSEvents implementation and a kqueue
19 // implementation. The biggest issues are that FSEvents on 10.6 sometimes drops 21 // implementation. The biggest issues are that FSEvents on 10.6 sometimes drops
20 // events and kqueue does not trigger for modifications to a file in a watched 22 // events and kqueue does not trigger for modifications to a file in a watched
21 // directory. See file_path_watcher_mac.cc for the code that decides when to 23 // directory. See file_path_watcher_mac.cc for the code that decides when to
22 // use which one. 24 // use which one.
23 class FilePathWatcherFSEvents : public FilePathWatcher::PlatformDelegate { 25 class FilePathWatcherFSEvents : public FilePathWatcher::PlatformDelegate {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // Backend stream we receive event callbacks from (strong reference). 87 // Backend stream we receive event callbacks from (strong reference).
86 // (Only accessed from the libdispatch thread.) 88 // (Only accessed from the libdispatch thread.)
87 FSEventStreamRef fsevent_stream_; 89 FSEventStreamRef fsevent_stream_;
88 90
89 DISALLOW_COPY_AND_ASSIGN(FilePathWatcherFSEvents); 91 DISALLOW_COPY_AND_ASSIGN(FilePathWatcherFSEvents);
90 }; 92 };
91 93
92 } // namespace base 94 } // namespace base
93 95
94 #endif // BASE_FILES_FILE_PATH_WATCHER_FSEVENTS_H_ 96 #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_fsevents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698