OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This module provides a way to monitor a file or directory for changes. | 5 // This module provides a way to monitor a file or directory for changes. |
6 | 6 |
7 #ifndef CHROME_BROWSER_FILE_PATH_WATCHER_H_ | 7 #ifndef CHROME_BROWSER_FILE_PATH_WATCHER_FILE_PATH_WATCHER_H_ |
8 #define CHROME_BROWSER_FILE_PATH_WATCHER_H_ | 8 #define CHROME_BROWSER_FILE_PATH_WATCHER_FILE_PATH_WATCHER_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
14 #include "chrome/browser/browser_thread.h" | 14 #include "chrome/browser/browser_thread.h" |
15 | 15 |
16 // This class lets you register interest in changes on a FilePath. | 16 // This class lets you register interest in changes on a FilePath. |
17 // The delegate will get called whenever the file or directory referenced by the | 17 // The delegate will get called whenever the file or directory referenced by the |
18 // FilePath is changed, including created or deleted. Due to limitations in the | 18 // FilePath is changed, including created or deleted. Due to limitations in the |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // allow to shut down properly while the object is still alive. | 54 // allow to shut down properly while the object is still alive. |
55 virtual void Cancel() {} | 55 virtual void Cancel() {} |
56 }; | 56 }; |
57 | 57 |
58 private: | 58 private: |
59 scoped_refptr<PlatformDelegate> impl_; | 59 scoped_refptr<PlatformDelegate> impl_; |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(FilePathWatcher); | 61 DISALLOW_COPY_AND_ASSIGN(FilePathWatcher); |
62 }; | 62 }; |
63 | 63 |
64 #endif // CHROME_BROWSER_FILE_PATH_WATCHER_H_ | 64 #endif // CHROME_BROWSER_FILE_PATH_WATCHER_FILE_PATH_WATCHER_H_ |
OLD | NEW |