27 #ifndef sbWin32FileSystemWatcher_h_
28 #define sbWin32FileSystemWatcher_h_
32 #include <nsStringAPI.h>
33 #include <nsIObserver.h>
51 NS_DECL_ISUPPORTS_INHERITED
53 NS_DECL_NSITIMERCALLBACK
57 const nsAString & aRootPath,
62 NS_IMETHOD
OnTreeReady(
const nsAString & aTreeRootPath,
112 nsCOMPtr<nsITimer> mTimer;
113 HANDLE mRootDirHandle;
114 HANDLE mWatcherThread;
115 nsCOMPtr<nsIThread> mRebuildThread;
117 OVERLAPPED mOverlapped;
118 PRBool mShouldRunThread;
119 PRBool mIsThreadRunning;
121 PRLock *mEventPathsSetLock;
122 PRBool mShuttingDown;
125 #endif // sbWin32FileSystemWatcher_h_
NS_IMETHOD StopWatching(PRBool aShouldSaveSession)
PRBool GetShouldRunThread()
NS_IMETHOD OnTreeReady(const nsAString &aTreeRootPath, sbStringArray &aDirPathArray)
nsTArray< nsString > sbStringArray
PRLock * GetEventPathsSetLock()
friend DWORD WINAPI BackgroundThreadProc(void *p)
PRBool GetIsThreadRunning()
virtual ~sbWin32FileSystemWatcher()
sbStringSet * GetEventPathsSet()
sbStringSet::iterator sbStringSetIter
std::set< nsString > sbStringSet
NS_DECL_ISUPPORTS_INHERITED NS_DECL_NSIOBSERVER NS_DECL_NSITIMERCALLBACK NS_IMETHOD Init(sbIFileSystemListener *aListener, const nsAString &aRootPath, PRBool aIsRecursive)
void SetIsThreadRunning(PRBool aIsThreadRunning)
sbWin32FileSystemWatcher()