diff options
author | dmikurube@google.com <dmikurube@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-26 12:21:51 +0000 |
---|---|---|
committer | dmikurube@google.com <dmikurube@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-26 12:21:51 +0000 |
commit | 3a7f439361a10ba1e8a001b6ecbe36c81836cf55 (patch) | |
tree | 9b335dd6f82df60a4c5081ccc6e1da866e2b826b /webkit/fileapi/file_system_usage_cache.h | |
parent | d04ebe5ddba584e5302507ebd7caee9669188009 (diff) | |
download | chromium_src-3a7f439361a10ba1e8a001b6ecbe36c81836cf55.zip chromium_src-3a7f439361a10ba1e8a001b6ecbe36c81836cf55.tar.gz chromium_src-3a7f439361a10ba1e8a001b6ecbe36c81836cf55.tar.bz2 |
Update .usage in QuotaFileUtil and FileWriterDelegate.
BUG=74841
TEST=QuotaFileUtilTest.*,FileWriterDelegateTest.*,FileSystemOperationWriteTest.*
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83006 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/file_system_usage_cache.h')
-rw-r--r-- | webkit/fileapi/file_system_usage_cache.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webkit/fileapi/file_system_usage_cache.h b/webkit/fileapi/file_system_usage_cache.h index 32fc9b8..84b2341 100644 --- a/webkit/fileapi/file_system_usage_cache.h +++ b/webkit/fileapi/file_system_usage_cache.h @@ -24,6 +24,11 @@ class FileSystemUsageCache { // Updates the size described in the .usage file. static int UpdateUsage(const FilePath& usage_file_path, int64 fs_usage); + // Updates the size described in the .usage file by delta with keeping dirty + // even if dirty > 0. + static int AtomicUpdateUsageByDelta( + const FilePath& usage_file_path, int64 delta); + static bool Exists(const FilePath& usage_file_path); static bool Delete(const FilePath& usage_file_path); |