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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 145 |
146 // Returns a quota util for a given filesystem type. This may | 146 // Returns a quota util for a given filesystem type. This may |
147 // return NULL if the type does not support the usage tracking or | 147 // return NULL if the type does not support the usage tracking or |
148 // it is not a quota-managed storage. | 148 // it is not a quota-managed storage. |
149 FileSystemQuotaUtil* GetQuotaUtil(FileSystemType type) const; | 149 FileSystemQuotaUtil* GetQuotaUtil(FileSystemType type) const; |
150 | 150 |
151 // Returns the appropriate AsyncFileUtil instance for the given |type|. | 151 // Returns the appropriate AsyncFileUtil instance for the given |type|. |
152 AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) const; | 152 AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) const; |
153 | 153 |
154 // Returns the appropriate CopyOrMoveFileValidatorFactory for the given | 154 // Returns the appropriate CopyOrMoveFileValidatorFactory for the given |
155 // |type|. If |error_code| is PLATFORM_FILE_OK and the result is NULL, | 155 // |type|. If |error_code| is File::FILE_OK and the result is NULL, |
156 // then no validator is required. | 156 // then no validator is required. |
157 CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory( | 157 CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory( |
158 FileSystemType type, base::File::Error* error_code) const; | 158 FileSystemType type, base::File::Error* error_code) const; |
159 | 159 |
160 // Returns the file system backend instance for the given |type|. | 160 // Returns the file system backend instance for the given |type|. |
161 // This may return NULL if it is given an invalid or unsupported filesystem | 161 // This may return NULL if it is given an invalid or unsupported filesystem |
162 // type. | 162 // type. |
163 FileSystemBackend* GetFileSystemBackend( | 163 FileSystemBackend* GetFileSystemBackend( |
164 FileSystemType type) const; | 164 FileSystemType type) const; |
165 | 165 |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 | 413 |
414 struct DefaultContextDeleter { | 414 struct DefaultContextDeleter { |
415 static void Destruct(const FileSystemContext* context) { | 415 static void Destruct(const FileSystemContext* context) { |
416 context->DeleteOnCorrectThread(); | 416 context->DeleteOnCorrectThread(); |
417 } | 417 } |
418 }; | 418 }; |
419 | 419 |
420 } // namespace fileapi | 420 } // namespace fileapi |
421 | 421 |
422 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 422 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
OLD | NEW |