Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(545)

Side by Side Diff: storage/browser/fileapi/watcher_manager.h

Issue 2552723003: storage: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase on top of master Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « storage/browser/fileapi/sandbox_file_system_backend_delegate.h ('k') | storage/browser/quota/quota_task.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698