| 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 6998f0d0c0351a120e97e25d1b68ef4e7e51adf2..3d82f3c62c370a366a77097e28b5cde1c38f6214 100644
|
| --- a/content/common/host_discardable_shared_memory_manager.h
|
| +++ b/content/common/host_discardable_shared_memory_manager.h
|
| @@ -7,7 +7,7 @@
|
|
|
| #include <vector>
|
|
|
| -#include "base/memory/discardable_memory_shmem_allocator.h"
|
| +#include "base/memory/discardable_memory_allocator.h"
|
| #include "base/memory/discardable_shared_memory.h"
|
| #include "base/memory/linked_ptr.h"
|
| #include "base/memory/memory_pressure_listener.h"
|
| @@ -19,12 +19,11 @@
|
|
|
| namespace content {
|
|
|
| -// Implementation of DiscardableMemoryShmemAllocator that allocates and
|
| -// manages discardable memory segments for the browser process and child
|
| -// processes. This class is thread-safe and instances can safely be used
|
| -// on any thread.
|
| +// Implementation of DiscardableMemoryAllocator that allocates and manages
|
| +// discardable memory segments for the browser process and child processes.
|
| +// This class is thread-safe and instances can safely be used on any thread.
|
| class CONTENT_EXPORT HostDiscardableSharedMemoryManager
|
| - : public base::DiscardableMemoryShmemAllocator {
|
| + : public base::DiscardableMemoryAllocator {
|
| public:
|
| HostDiscardableSharedMemoryManager();
|
| ~HostDiscardableSharedMemoryManager() override;
|
| @@ -32,8 +31,8 @@ class CONTENT_EXPORT HostDiscardableSharedMemoryManager
|
| // Returns a singleton instance.
|
| static HostDiscardableSharedMemoryManager* current();
|
|
|
| - // Overridden from base::DiscardableMemoryShmemAllocator:
|
| - scoped_ptr<base::DiscardableMemoryShmemChunk> AllocateLockedDiscardableMemory(
|
| + // Overridden from base::DiscardableMemoryAllocator:
|
| + scoped_ptr<base::DiscardableMemory> AllocateLockedDiscardableMemory(
|
| size_t size) override;
|
|
|
| // This allocates a discardable memory segment for |process_handle|.
|
|
|