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

Unified Diff: base/memory/discardable_memory_shmem.h

Issue 807303002: base: Add free list implementation to browser-wide discardable memory system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@discardable-shared-memory-ashmem
Patch Set: fix nits Created 6 years 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 | « no previous file | base/memory/discardable_memory_shmem.cc » ('j') | base/memory/discardable_memory_shmem.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/discardable_memory_shmem.h
diff --git a/base/memory/discardable_memory_shmem.h b/base/memory/discardable_memory_shmem.h
index d25f84cb46dbdb364d1a86dbf4c9286c8759d02e..46bc5887ec00b8e70eba42f5c380afba40d121bc 100644
--- a/base/memory/discardable_memory_shmem.h
+++ b/base/memory/discardable_memory_shmem.h
@@ -10,7 +10,7 @@
#include "base/memory/discardable_memory_manager.h"
namespace base {
-class DiscardableSharedMemory;
+class DiscardableMemoryShmemChunk;
namespace internal {
@@ -40,7 +40,7 @@ class DiscardableMemoryShmem
private:
const size_t bytes_;
- scoped_ptr<DiscardableSharedMemory> shared_memory_;
+ scoped_ptr<DiscardableMemoryShmemChunk> chunk_;
danakj 2014/12/18 21:40:50 What is the point of wrapping DiscardableSharedMem
reveman 2014/12/19 00:49:54 Each DiscardableSharedMemory instance is used for
danakj 2014/12/19 21:08:08 Sorry this explanation confuses me. Specifically D
reveman 2014/12/19 22:16:03 It's wrapped in a linked_ptr (See DiscardableShare
bool is_locked_;
DISALLOW_COPY_AND_ASSIGN(DiscardableMemoryShmem);
« no previous file with comments | « no previous file | base/memory/discardable_memory_shmem.cc » ('j') | base/memory/discardable_memory_shmem.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698