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

Unified Diff: chrome/browser/renderer_host/backing_store_manager.h

Issue 146095: change backing store cache to be memory-based rather than count (Closed)
Patch Set: added better MemorySize() and comments Created 11 years, 6 months 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
Index: chrome/browser/renderer_host/backing_store_manager.h
diff --git a/chrome/browser/renderer_host/backing_store_manager.h b/chrome/browser/renderer_host/backing_store_manager.h
index 3078a9358e92bfa268ab460a9db54f1b917d6c49..625e87fc14e4c5aa6de3f6d93d462f67863d29ed 100644
--- a/chrome/browser/renderer_host/backing_store_manager.h
+++ b/chrome/browser/renderer_host/backing_store_manager.h
@@ -63,6 +63,9 @@ class BackingStoreManager {
// removed, false if it wasn't found.
static bool ExpireBackingStoreForTest(RenderWidgetHost* host);
+ // Current size in bytes of the backing store cache.
+ static size_t MemorySize();
+
private:
// Not intended for instantiation.
BackingStoreManager() {}

Powered by Google App Engine
This is Rietveld 408576698