| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_FILEAPI_FILE_SYSTEM_TEST_HELPER_H_ | 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_TEST_HELPER_H_ |
| 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_TEST_HELPER_H_ | 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_TEST_HELPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 void TearDown(); | 54 void TearDown(); |
| 55 | 55 |
| 56 FilePath GetOriginRootPath() const; | 56 FilePath GetOriginRootPath() const; |
| 57 FilePath GetLocalPath(const FilePath& path); | 57 FilePath GetLocalPath(const FilePath& path); |
| 58 FilePath GetLocalPathFromASCII(const std::string& path); | 58 FilePath GetLocalPathFromASCII(const std::string& path); |
| 59 GURL GetURLForPath(const FilePath& path) const; | 59 GURL GetURLForPath(const FilePath& path) const; |
| 60 FilePath GetUsageCachePath() const; | 60 FilePath GetUsageCachePath() const; |
| 61 | 61 |
| 62 int64 GetCachedOriginUsage() const; | 62 int64 GetCachedOriginUsage() const; |
| 63 bool RevokeUsageCache() const; | 63 bool RevokeUsageCache() const; |
| 64 |
| 65 // This doesn't work with OFSFU. |
| 64 int64 ComputeCurrentOriginUsage() const; | 66 int64 ComputeCurrentOriginUsage() const; |
| 65 | 67 |
| 66 FileSystemOperation* NewOperation( | 68 FileSystemOperation* NewOperation( |
| 67 FileSystemCallbackDispatcher* callback_dispatcher); | 69 FileSystemCallbackDispatcher* callback_dispatcher); |
| 68 FileSystemOperationContext* NewOperationContext(); | 70 FileSystemOperationContext* NewOperationContext(); |
| 69 | 71 |
| 70 FileSystemContext* file_system_context() const { | 72 FileSystemContext* file_system_context() const { |
| 71 return file_system_context_.get(); | 73 return file_system_context_.get(); |
| 72 } | 74 } |
| 73 | 75 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 84 scoped_refptr<FileSystemContext> file_system_context_; | 86 scoped_refptr<FileSystemContext> file_system_context_; |
| 85 const GURL origin_; | 87 const GURL origin_; |
| 86 const FileSystemType type_; | 88 const FileSystemType type_; |
| 87 FileSystemFileUtil* file_util_; | 89 FileSystemFileUtil* file_util_; |
| 88 int64 initial_usage_size_; | 90 int64 initial_usage_size_; |
| 89 }; | 91 }; |
| 90 | 92 |
| 91 } // namespace fileapi | 93 } // namespace fileapi |
| 92 | 94 |
| 93 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_TEST_HELPER_H_ | 95 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_TEST_HELPER_H_ |
| OLD | NEW |