Lines Matching refs:available
99 int64_t PreferredCacheSizeInternal(int64_t available) { in PreferredCacheSizeInternal() argument
103 if (available < kDefaultCacheSize * 10 / 8) in PreferredCacheSizeInternal()
104 return available * 8 / 10; in PreferredCacheSizeInternal()
107 if (available < kDefaultCacheSize * 10) in PreferredCacheSizeInternal()
112 if (available < static_cast<int64_t>(kDefaultCacheSize) * 25) in PreferredCacheSizeInternal()
113 return available / 10; in PreferredCacheSizeInternal()
117 if (available < static_cast<int64_t>(kDefaultCacheSize) * 250) in PreferredCacheSizeInternal()
121 return available / 100; in PreferredCacheSizeInternal()
173 int PreferredCacheSize(int64_t available, net::CacheType type) { in PreferredCacheSize() argument
202 if (available >= 0) { in PreferredCacheSize()
203 preferred_cache_size = PreferredCacheSizeInternal(available); in PreferredCacheSize()
208 if (preferred_cache_size < available / 5) { in PreferredCacheSize()
209 const base::ClampedNumeric<int64_t> clamped_available(available); in PreferredCacheSize()