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

Unified Diff: base/memory/discardable_memory_shmem.h

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months 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 | « base/memory/discardable_memory_manager_unittest.cc ('k') | base/memory/discardable_memory_shmem.cc » ('j') | no next file with comments »
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 b04c9b1ea6ebe70fb79af1f4f01be675749cc6f7..98d3b97a204a4fe11ec0933aee7e5e877c1de2a9 100644
--- a/base/memory/discardable_memory_shmem.h
+++ b/base/memory/discardable_memory_shmem.h
@@ -7,24 +7,16 @@
#include "base/memory/discardable_memory.h"
-#include "base/memory/discardable_memory_manager.h"
-
namespace base {
class DiscardableMemoryShmemChunk;
namespace internal {
-class DiscardableMemoryShmem
- : public DiscardableMemory,
- public internal::DiscardableMemoryManagerAllocation {
+class DiscardableMemoryShmem : public DiscardableMemory {
public:
explicit DiscardableMemoryShmem(size_t bytes);
~DiscardableMemoryShmem() override;
- static void ReleaseFreeMemory();
-
- static void PurgeForTesting();
-
bool Initialize();
// Overridden from DiscardableMemory:
@@ -32,12 +24,6 @@ class DiscardableMemoryShmem
void Unlock() override;
void* Memory() const override;
- // Overridden from internal::DiscardableMemoryManagerAllocation:
- bool AllocateAndAcquireLock() override;
- void ReleaseLock() override;
- void Purge() override;
- bool IsMemoryResident() const override;
-
private:
const size_t bytes_;
scoped_ptr<DiscardableMemoryShmemChunk> chunk_;
« no previous file with comments | « base/memory/discardable_memory_manager_unittest.cc ('k') | base/memory/discardable_memory_shmem.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698