GaiaOAuthClient::Core::GetUserInfo() does not need to send or receive cookies.
[chromium-blink-merge.git] / base / memory / discardable_memory_linux.cc
blob92e39e5e7d421f3f7acd67ae39b7c9e95b060cd2
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/memory/discardable_memory_emulated.h"
7 namespace base {
9 // static
10 bool DiscardableMemory::SupportedNatively() {
11 return false;
14 // static
15 scoped_ptr<DiscardableMemory> DiscardableMemory::CreateLockedMemory(
16 size_t size) {
17 scoped_ptr<internal::DiscardableMemoryEmulated> memory(
18 new internal::DiscardableMemoryEmulated(size));
19 if (!memory->Initialize())
20 return scoped_ptr<DiscardableMemory>();
22 return memory.PassAs<DiscardableMemory>();
25 // static
26 bool DiscardableMemory::PurgeForTestingSupported() {
27 return true;
30 // static
31 void DiscardableMemory::PurgeForTesting() {
32 internal::DiscardableMemoryEmulated::PurgeForTesting();
35 } // namespace base