#import "include/cef_base.h" #import "include/cef_v8.h" #import typedef void (^WatchCallback)(NSString *, NSString *); @interface PathWatcher : NSObject { int _kq; CefRefPtr _context; NSMutableDictionary *_callbacksByPath; NSMutableDictionary *_fileDescriptorsByPath; bool _keepWatching; } + (PathWatcher *)pathWatcherForContext:(CefRefPtr)context; + (void)removePathWatcherForContext:(CefRefPtr)context; - (id)initWithContext:(CefRefPtr)context; - (NSString *)watchPath:(NSString *)path callback:(WatchCallback)callback; - (void)unwatchPath:(NSString *)path callbackId:(NSString *)callbackId error:(NSError **)error; - (void)unwatchAllPaths; - (NSArray *)watchedPaths; @end