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

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: rebase 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 c2e927537a091cce1f61a85ed07d693566d762ea..0ccdaf21a4f7c4ebaac44b53d0148046fac6690c 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