Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(510)

Unified Diff: components/web_cache/renderer/web_cache_impl.cc

Issue 2435603002: [WeakMemoryCache] Remove dead/live distinction of Resource outside core/fetch (Closed)
Patch Set: Rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/web_cache/renderer/web_cache_impl.h ('k') | third_party/WebKit/Source/web/WebCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/web_cache/renderer/web_cache_impl.cc
diff --git a/components/web_cache/renderer/web_cache_impl.cc b/components/web_cache/renderer/web_cache_impl.cc
index 7acf69dc11cabd8a33e37a959c0a6afe8b76b303..936d0205a0df22afa465bfe0b84a3c57a9594aa5 100644
--- a/components/web_cache/renderer/web_cache_impl.cc
+++ b/components/web_cache/renderer/web_cache_impl.cc
@@ -42,15 +42,10 @@ void WebCacheImpl::ExecutePendingClearCache() {
}
}
-void WebCacheImpl::SetCacheCapacities(uint64_t min_dead_capacity,
- uint64_t max_dead_capacity,
- uint64_t capacity64) {
- size_t min_dead_capacity2 = base::checked_cast<size_t>(min_dead_capacity);
- size_t max_dead_capacity2 = base::checked_cast<size_t>(max_dead_capacity);
+void WebCacheImpl::SetCacheCapacity(uint64_t capacity64) {
size_t capacity = base::checked_cast<size_t>(capacity64);
- blink::WebCache::setCapacities(min_dead_capacity2, max_dead_capacity2,
- capacity);
+ blink::WebCache::setCapacity(capacity);
}
void WebCacheImpl::ClearCache(bool on_navigation) {
« no previous file with comments | « components/web_cache/renderer/web_cache_impl.h ('k') | third_party/WebKit/Source/web/WebCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698