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

Side by Side Diff: base/memory/discardable_memory.cc

Issue 1013373002: base: Remove DiscardableMemory::CreateLockedMemory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win build issue Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « base/memory/discardable_memory.h ('k') | content/child/web_discardable_memory_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/memory/discardable_memory.h" 5 #include "base/memory/discardable_memory.h"
6 6
7 #include "base/memory/discardable_memory_allocator.h"
8
9 namespace base { 7 namespace base {
10 8
11 // static 9 DiscardableMemory::DiscardableMemory() {
12 scoped_ptr<DiscardableMemory> DiscardableMemory::CreateLockedMemory( 10 }
13 size_t size) { 11
14 return DiscardableMemoryAllocator::GetInstance() 12 DiscardableMemory::~DiscardableMemory() {
15 ->AllocateLockedDiscardableMemory(size);
16 } 13 }
17 14
18 } // namespace base 15 } // namespace base
OLDNEW
« no previous file with comments | « base/memory/discardable_memory.h ('k') | content/child/web_discardable_memory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698