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

Side by Side Diff: base/memory/discardable_memory_android.h

Issue 24988003: Refactor DiscardableMemory for the upcoming DiscardableMemoryAllocator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add calls to mprotect() in DEBUG mode Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 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.
4
5 // Please use discardable_memory.h since this is just an internal file providing
6 // utility functions.
7
8 #ifndef BASE_MEMORY_DISCARDABLE_MEMORY_ANDROID_H_
9 #define BASE_MEMORY_DISCARDABLE_MEMORY_ANDROID_H_
10
11 #include "base/basictypes.h"
12 #include "base/memory/discardable_memory.h"
13
14 namespace base {
15 namespace internal {
16
17 bool CreateAshmemRegion(const char* name, size_t size, int* fd, void** address);
willchan no longer on Chromium 2013/10/17 01:21:37 BASE_EXPORT_PRIVATE all of these? Why are these ev
Philippe 2013/10/17 08:56:24 This will be used by the allocator. I agree that t
18
19 bool DeleteAshmemRegion(int fd, size_t size, void* address);
20
21 LockDiscardableMemoryStatus LockAshmemRegion(int fd,
22 size_t off,
23 size_t size,
24 const void* address);
25
26 bool UnlockAshmemRegion(int fd, size_t off, size_t size, const void* address);
27
28 } // namespace internal
29 } // namespace base
30
31 #endif // BASE_MEMORY_DISCARDABLE_MEMORY_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698