| OLD | NEW |
| 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 STORAGE_BROWSER_FILEAPI_WATCHER_MANAGER_H_ | 5 #ifndef STORAGE_BROWSER_FILEAPI_WATCHER_MANAGER_H_ |
| 6 #define STORAGE_BROWSER_FILEAPI_WATCHER_MANAGER_H_ | 6 #define STORAGE_BROWSER_FILEAPI_WATCHER_MANAGER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| 11 #include "base/files/file.h" | 11 #include "base/files/file.h" |
| 12 | 12 |
| 13 namespace storage { | 13 namespace storage { |
| 14 | 14 |
| 15 class FileSystemOperationContext; | |
| 16 class FileSystemURL; | 15 class FileSystemURL; |
| 17 | 16 |
| 18 // An interface for providing entry observing capability for file system | 17 // An interface for providing entry observing capability for file system |
| 19 // backends. | 18 // backends. |
| 20 // | 19 // |
| 21 // It is NOT valid to give null callback to this class, and implementors | 20 // It is NOT valid to give null callback to this class, and implementors |
| 22 // can assume that they don't get any null callbacks. | 21 // can assume that they don't get any null callbacks. |
| 23 class WatcherManager { | 22 class WatcherManager { |
| 24 public: | 23 public: |
| 25 enum ChangeType { CHANGED, DELETED }; | 24 enum ChangeType { CHANGED, DELETED }; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 48 | 47 |
| 49 // Removes a watcher represented by |url| in |recursive| mode. | 48 // Removes a watcher represented by |url| in |recursive| mode. |
| 50 virtual void RemoveWatcher(const FileSystemURL& url, | 49 virtual void RemoveWatcher(const FileSystemURL& url, |
| 51 bool recursive, | 50 bool recursive, |
| 52 const StatusCallback& callback) = 0; | 51 const StatusCallback& callback) = 0; |
| 53 }; | 52 }; |
| 54 | 53 |
| 55 } // namespace storage | 54 } // namespace storage |
| 56 | 55 |
| 57 #endif // STORAGE_BROWSER_FILEAPI_WATCHER_MANAGER_H_ | 56 #endif // STORAGE_BROWSER_FILEAPI_WATCHER_MANAGER_H_ |
| OLD | NEW |