#import "include/cef_base.h" #import "include/cef_v8.h" #import typedef void (^WatchCallback)(NSString *, NSString *); @interface PathWatcher : NSObject { int _kq; CefRefPtr _context; NSMutableDictionary *_fileDescriptorsByPath; NSMutableDictionary *_callbacksByFileDescriptor; 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; @end