Searched refs:usage_file_path (Results 1 – 8 of 8) sorted by relevance
/external/chromium_org/content/browser/fileapi/ |
D | file_system_usage_cache_unittest.cc | 44 base::FilePath usage_file_path = GetUsageFilePath(); in TEST_F() local 45 EXPECT_TRUE(usage_cache()->UpdateUsage(usage_file_path, 0)); in TEST_F() 50 base::FilePath usage_file_path = GetUsageFilePath(); in TEST_F() local 52 ASSERT_TRUE(usage_cache()->UpdateUsage(usage_file_path, size)); in TEST_F() 53 EXPECT_TRUE(usage_cache()->GetUsage(usage_file_path, &usage)); in TEST_F() 59 base::FilePath usage_file_path = GetUsageFilePath(); in TEST_F() local 61 ASSERT_TRUE(usage_cache()->UpdateUsage(usage_file_path, size)); in TEST_F() 62 EXPECT_TRUE(usage_cache()->GetUsage(usage_file_path, &usage)); in TEST_F() 67 base::FilePath usage_file_path = GetUsageFilePath(); in TEST_F() local 70 ASSERT_TRUE(usage_cache()->UpdateUsage(usage_file_path, 98214)); in TEST_F() [all …]
|
/external/chromium_org/webkit/browser/fileapi/ |
D | file_system_usage_cache.cc | 46 bool FileSystemUsageCache::GetUsage(const base::FilePath& usage_file_path, in GetUsage() argument 54 if (!Read(usage_file_path, &is_valid, &dirty, &usage)) in GetUsage() 60 bool FileSystemUsageCache::GetDirty(const base::FilePath& usage_file_path, in GetDirty() argument 68 if (!Read(usage_file_path, &is_valid, &dirty, &usage)) in GetDirty() 75 const base::FilePath& usage_file_path) { in IncrementDirty() argument 81 bool new_handle = !HasCacheFileHandle(usage_file_path); in IncrementDirty() 82 if (!Read(usage_file_path, &is_valid, &dirty, &usage)) in IncrementDirty() 85 bool success = Write(usage_file_path, is_valid, dirty + 1, usage); in IncrementDirty() 87 FlushFile(usage_file_path); in IncrementDirty() 92 const base::FilePath& usage_file_path) { in DecrementDirty() argument [all …]
|
D | file_system_usage_cache.h | 29 bool GetUsage(const base::FilePath& usage_file_path, int64* usage); 33 bool GetDirty(const base::FilePath& usage_file_path, uint32* dirty); 37 bool IncrementDirty(const base::FilePath& usage_file_path); 38 bool DecrementDirty(const base::FilePath& usage_file_path); 42 bool Invalidate(const base::FilePath& usage_file_path); 43 bool IsValid(const base::FilePath& usage_file_path); 46 bool UpdateUsage(const base::FilePath& usage_file_path, int64 fs_usage); 50 bool AtomicUpdateUsageByDelta(const base::FilePath& usage_file_path, 53 bool Exists(const base::FilePath& usage_file_path); 54 bool Delete(const base::FilePath& usage_file_path); [all …]
|
D | sandbox_quota_observer.cc | 32 base::FilePath usage_file_path = GetUsageCachePath(url); in OnStartUpdate() local 33 if (usage_file_path.empty()) in OnStartUpdate() 35 file_system_usage_cache_->IncrementDirty(usage_file_path); in OnStartUpdate() 50 base::FilePath usage_file_path = GetUsageCachePath(url); in OnUpdate() local 51 if (usage_file_path.empty()) in OnUpdate() 54 pending_update_notification_[usage_file_path] += delta; in OnUpdate() 69 base::FilePath usage_file_path = GetUsageCachePath(url); in OnEndUpdate() local 70 if (usage_file_path.empty()) in OnEndUpdate() 74 pending_update_notification_.find(usage_file_path); in OnEndUpdate() 80 file_system_usage_cache_->DecrementDirty(usage_file_path); in OnEndUpdate() [all …]
|
D | sandbox_file_system_backend_delegate.cc | 403 base::FilePath usage_file_path = in GetOriginUsageOnFileTaskRunner() local 406 bool is_valid = usage_cache()->IsValid(usage_file_path); in GetOriginUsageOnFileTaskRunner() 409 usage_cache()->GetDirty(usage_file_path, &dirty_status); in GetOriginUsageOnFileTaskRunner() 415 return usage_cache()->GetUsage(usage_file_path, &usage) ? usage : -1; in GetOriginUsageOnFileTaskRunner() 419 usage_cache()->Delete(usage_file_path); in GetOriginUsageOnFileTaskRunner() 424 usage_cache()->UpdateUsage(usage_file_path, usage); in GetOriginUsageOnFileTaskRunner() 500 base::FilePath usage_file_path = GetUsageCachePathForOriginAndType( in InvalidateUsageCache() local 504 usage_cache()->IncrementDirty(usage_file_path); in InvalidateUsageCache()
|
D | sandbox_quota_observer.h | 61 void UpdateUsageCacheFile(const base::FilePath& usage_file_path, int64 delta);
|
/external/chromium_org/webkit/browser/fileapi/quota/ |
D | quota_backend_impl.cc | 146 base::FilePath* usage_file_path) { in GetUsageCachePath() argument 149 DCHECK(usage_file_path); in GetUsageCachePath() 151 *usage_file_path = in GetUsageCachePath()
|
D | quota_backend_impl.h | 90 base::FilePath* usage_file_path);
|