Chromium Code Reviews| 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); |