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

Unified Diff: content/common/host_discardable_shared_memory_manager.cc

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: add comment 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
Index: content/common/host_discardable_shared_memory_manager.cc
diff --git a/content/common/host_discardable_shared_memory_manager.cc b/content/common/host_discardable_shared_memory_manager.cc
index c56fd113f596419b4aa47746d8fa67f644a4f16e..3dbeac493de4a63d935c289d1d9c34750deef8ae 100644
--- a/content/common/host_discardable_shared_memory_manager.cc
+++ b/content/common/host_discardable_shared_memory_manager.cc
@@ -52,13 +52,13 @@ HostDiscardableSharedMemoryManager::current() {
return g_discardable_shared_memory_manager.Pointer();
}
-scoped_ptr<base::DiscardableSharedMemory>
-HostDiscardableSharedMemoryManager::AllocateLockedDiscardableSharedMemory(
+scoped_ptr<base::DiscardableMemoryShmemChunk>
+HostDiscardableSharedMemoryManager::AllocateLockedDiscardableMemory(
size_t size) {
// TODO(reveman): Need to implement this for discardable memory support in
// the browser process.
NOTIMPLEMENTED();
- return scoped_ptr<base::DiscardableSharedMemory>();
+ return scoped_ptr<base::DiscardableMemoryShmemChunk>();
}
void HostDiscardableSharedMemoryManager::

Powered by Google App Engine
This is Rietveld 408576698