OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef BASE_PROCESS_MEMORY_H_ | 5 #ifndef BASE_PROCESS_MEMORY_H_ |
6 #define BASE_PROCESS_MEMORY_H_ | 6 #define BASE_PROCESS_MEMORY_H_ |
7 | 7 |
| 8 #include "base/base_export.h" |
8 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
9 #include "base/base_export.h" | 10 #include "base/process/process_handle.h" |
10 #include "base/process.h" | |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 | 12 |
13 #if defined(OS_WIN) | 13 #if defined(OS_WIN) |
14 #include <windows.h> | 14 #include <windows.h> |
15 #endif | 15 #endif |
16 | 16 |
17 namespace base { | 17 namespace base { |
18 | 18 |
19 // Enables low fragmentation heap (LFH) for every heaps of this process. This | 19 // Enables low fragmentation heap (LFH) for every heaps of this process. This |
20 // won't have any effect on heaps created after this function call. It will not | 20 // won't have any effect on heaps created after this function call. It will not |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // OSX. | 60 // OSX. |
61 // | 61 // |
62 // IF YOU USE THIS WITHOUT CONSULTING YOUR FRIENDLY OSX DEVELOPER, | 62 // IF YOU USE THIS WITHOUT CONSULTING YOUR FRIENDLY OSX DEVELOPER, |
63 // YOUR CODE IS LIKELY TO BE REVERTED. THANK YOU. | 63 // YOUR CODE IS LIKELY TO BE REVERTED. THANK YOU. |
64 BASE_EXPORT void* UncheckedMalloc(size_t size); | 64 BASE_EXPORT void* UncheckedMalloc(size_t size); |
65 #endif // defined(OS_MACOSX) | 65 #endif // defined(OS_MACOSX) |
66 | 66 |
67 } // namespace base | 67 } // namespace base |
68 | 68 |
69 #endif // BASE_PROCESS_MEMORY_H_ | 69 #endif // BASE_PROCESS_MEMORY_H_ |
OLD | NEW |