OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 WatcherManager* GetWatcherManager(FileSystemType type) const; | 169 WatcherManager* GetWatcherManager(FileSystemType type) const; |
170 | 170 |
171 // Returns true for sandboxed filesystems. Currently this does | 171 // Returns true for sandboxed filesystems. Currently this does |
172 // the same as GetQuotaUtil(type) != NULL. (In an assumption that | 172 // the same as GetQuotaUtil(type) != NULL. (In an assumption that |
173 // all sandboxed filesystems must cooperate with QuotaManager so that | 173 // all sandboxed filesystems must cooperate with QuotaManager so that |
174 // they can get deleted) | 174 // they can get deleted) |
175 bool IsSandboxFileSystem(FileSystemType type) const; | 175 bool IsSandboxFileSystem(FileSystemType type) const; |
176 | 176 |
177 // Returns observers for the given filesystem type. | 177 // Returns observers for the given filesystem type. |
178 const UpdateObserverList* GetUpdateObservers(FileSystemType type) const; | 178 const UpdateObserverList* GetUpdateObservers(FileSystemType type) const; |
| 179 const ChangeObserverList* GetChangeObservers(FileSystemType type) const; |
179 const AccessObserverList* GetAccessObservers(FileSystemType type) const; | 180 const AccessObserverList* GetAccessObservers(FileSystemType type) const; |
180 | 181 |
181 // Returns all registered filesystem types. | 182 // Returns all registered filesystem types. |
182 void GetFileSystemTypes(std::vector<FileSystemType>* types) const; | 183 void GetFileSystemTypes(std::vector<FileSystemType>* types) const; |
183 | 184 |
184 // Returns a FileSystemBackend instance for external filesystem | 185 // Returns a FileSystemBackend instance for external filesystem |
185 // type, which is used only by chromeos for now. This is equivalent to | 186 // type, which is used only by chromeos for now. This is equivalent to |
186 // calling GetFileSystemBackend(kFileSystemTypeExternal). | 187 // calling GetFileSystemBackend(kFileSystemTypeExternal). |
187 ExternalFileSystemBackend* external_backend() const; | 188 ExternalFileSystemBackend* external_backend() const; |
188 | 189 |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 | 419 |
419 struct DefaultContextDeleter { | 420 struct DefaultContextDeleter { |
420 static void Destruct(const FileSystemContext* context) { | 421 static void Destruct(const FileSystemContext* context) { |
421 context->DeleteOnCorrectThread(); | 422 context->DeleteOnCorrectThread(); |
422 } | 423 } |
423 }; | 424 }; |
424 | 425 |
425 } // namespace storage | 426 } // namespace storage |
426 | 427 |
427 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 428 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
OLD | NEW |