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

Unified Diff: third_party/WebKit/public/web/WebCache.h

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 | « third_party/WebKit/Source/web/WebCache.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebCache.h
diff --git a/third_party/WebKit/public/web/WebCache.h b/third_party/WebKit/public/web/WebCache.h
index ce0df1b1b11ee99f4e28f6455e713ca0d97662f1..4fad5846d5918385469d68f6c51a059962f57e1e 100644
--- a/third_party/WebKit/public/web/WebCache.h
+++ b/third_party/WebKit/public/web/WebCache.h
@@ -39,20 +39,14 @@ namespace blink {
class WebCache {
public:
struct UsageStats {
- // Capacities.
- size_t minDeadCapacity;
- size_t maxDeadCapacity;
size_t capacity;
- // Utilization.
- size_t liveSize;
- size_t deadSize;
+ size_t size;
};
// A struct mirroring blink::MemoryCache::TypeStatistic.
struct ResourceTypeStat {
size_t count;
size_t size;
- size_t liveSize;
size_t decodedSize;
};
@@ -67,9 +61,7 @@ class WebCache {
};
// Sets the capacities of the resource cache, evicting objects as necessary.
- BLINK_EXPORT static void setCapacities(size_t minDeadCapacity,
- size_t maxDeadCapacity,
- size_t capacity);
+ BLINK_EXPORT static void setCapacity(size_t);
// Clears the cache (as much as possible; some resources may not be
// cleared if they are actively referenced). Note that this method
« no previous file with comments | « third_party/WebKit/Source/web/WebCache.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698