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

Unified Diff: base/memory/discardable_memory_allocator.h

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 Created 4 years, 8 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/aligned_memory_unittest.cc ('k') | base/memory/memory_pressure_listener_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/discardable_memory_allocator.h
diff --git a/base/memory/discardable_memory_allocator.h b/base/memory/discardable_memory_allocator.h
index ea7947e1ccfe003bdd28bb6a4bd56e82bde0e565..ad73f0890d6cbe80b01c763f02c43a305aa3c161 100644
--- a/base/memory/discardable_memory_allocator.h
+++ b/base/memory/discardable_memory_allocator.h
@@ -7,8 +7,9 @@
#include <stddef.h>
+#include <memory>
+
#include "base/base_export.h"
-#include "base/memory/scoped_ptr.h"
namespace base {
class DiscardableMemory;
@@ -22,7 +23,7 @@ class BASE_EXPORT DiscardableMemoryAllocator {
// Ownership of |instance| remains with the caller.
static void SetInstance(DiscardableMemoryAllocator* allocator);
- virtual scoped_ptr<DiscardableMemory> AllocateLockedDiscardableMemory(
+ virtual std::unique_ptr<DiscardableMemory> AllocateLockedDiscardableMemory(
size_t size) = 0;
protected:
« no previous file with comments | « base/memory/aligned_memory_unittest.cc ('k') | base/memory/memory_pressure_listener_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698