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

Unified Diff: content/common/host_discardable_shared_memory_manager.h

Issue 2388403002: HostDiscardableSharedMemoryManager should store the default memory limit (Closed)
Patch Set: Created 4 years, 2 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: content/common/host_discardable_shared_memory_manager.h
diff --git a/content/common/host_discardable_shared_memory_manager.h b/content/common/host_discardable_shared_memory_manager.h
index 90c90938ceed8a705141276995348cd34ac898a6..59a939a0297718df1f44cc4455fd68a962016a4d 100644
--- a/content/common/host_discardable_shared_memory_manager.h
+++ b/content/common/host_discardable_shared_memory_manager.h
@@ -136,6 +136,7 @@ class CONTENT_EXPORT HostDiscardableSharedMemoryManager
// a heap. The LRU memory segment always first.
typedef std::vector<scoped_refptr<MemorySegment>> MemorySegmentVector;
MemorySegmentVector segments_;
+ size_t default_memory_limit_;
size_t memory_limit_;
size_t bytes_allocated_;
std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_;

Powered by Google App Engine
This is Rietveld 408576698