| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 ScopedVector<FileSystemBackend> additional_backends, | 101 ScopedVector<FileSystemBackend> additional_backends, |
| 102 const base::FilePath& partition_path, | 102 const base::FilePath& partition_path, |
| 103 const FileSystemOptions& options); | 103 const FileSystemOptions& options); |
| 104 | 104 |
| 105 bool DeleteDataForOriginOnFileThread(const GURL& origin_url); | 105 bool DeleteDataForOriginOnFileThread(const GURL& origin_url); |
| 106 | 106 |
| 107 quota::QuotaManagerProxy* quota_manager_proxy() const { | 107 quota::QuotaManagerProxy* quota_manager_proxy() const { |
| 108 return quota_manager_proxy_.get(); | 108 return quota_manager_proxy_.get(); |
| 109 } | 109 } |
| 110 | 110 |
| 111 // Discards inflight operations in the operation runner. |
| 112 void Shutdown(); |
| 113 |
| 111 // Returns a quota util for a given filesystem type. This may | 114 // Returns a quota util for a given filesystem type. This may |
| 112 // return NULL if the type does not support the usage tracking or | 115 // return NULL if the type does not support the usage tracking or |
| 113 // it is not a quota-managed storage. | 116 // it is not a quota-managed storage. |
| 114 FileSystemQuotaUtil* GetQuotaUtil(FileSystemType type) const; | 117 FileSystemQuotaUtil* GetQuotaUtil(FileSystemType type) const; |
| 115 | 118 |
| 116 // Returns the appropriate AsyncFileUtil instance for the given |type|. | 119 // Returns the appropriate AsyncFileUtil instance for the given |type|. |
| 117 AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) const; | 120 AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) const; |
| 118 | 121 |
| 119 // Returns the appropriate FileUtil instance for the given |type|. | 122 // Returns the appropriate FileUtil instance for the given |type|. |
| 120 // This may return NULL if it is given an invalid type or the filesystem | 123 // This may return NULL if it is given an invalid type or the filesystem |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 | 318 |
| 316 struct DefaultContextDeleter { | 319 struct DefaultContextDeleter { |
| 317 static void Destruct(const FileSystemContext* context) { | 320 static void Destruct(const FileSystemContext* context) { |
| 318 context->DeleteOnCorrectThread(); | 321 context->DeleteOnCorrectThread(); |
| 319 } | 322 } |
| 320 }; | 323 }; |
| 321 | 324 |
| 322 } // namespace fileapi | 325 } // namespace fileapi |
| 323 | 326 |
| 324 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 327 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
| OLD | NEW |