Chromium Code Reviews| Index: base/allocator/partition_allocator/address_space_randomization.h |
| diff --git a/third_party/WebKit/Source/wtf/allocator/AddressSpaceRandomization.h b/base/allocator/partition_allocator/address_space_randomization.h |
| similarity index 52% |
| rename from third_party/WebKit/Source/wtf/allocator/AddressSpaceRandomization.h |
| rename to base/allocator/partition_allocator/address_space_randomization.h |
| index 9d3ddd186cdda7214ee5256e88322f8a914deaec..dee86191675c5f321dc36028c881d83a33cdc106 100644 |
| --- a/third_party/WebKit/Source/wtf/allocator/AddressSpaceRandomization.h |
| +++ b/base/allocator/partition_allocator/address_space_randomization.h |
| @@ -2,17 +2,17 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef WTF_AddressSpaceRandomization_h |
| -#define WTF_AddressSpaceRandomization_h |
| +#ifndef BASE_ALLOCATOR_PARTITION_ALLOCATOR_ADDRESS_SPACE_RANDOMIZATION |
| +#define BASE_ALLOCATOR_PARTITION_ALLOCATOR_ADDRESS_SPACE_RANDOMIZATION |
| -#include "wtf/WTFExport.h" |
| +#include "base/base_export.h" |
| -namespace WTF { |
| +namespace base { |
| // Calculates a random preferred mapping address. In calculating an |
| // address, we balance good ASLR against not fragmenting the address |
| // space too badly. |
| -WTF_EXPORT void* getRandomPageBase(); |
| +BASE_EXPORT void* getRandomPageBase(); |
|
Primiano Tucci (use gerrit)
2016/11/22 14:28:32
Also, this one doesn't seem to be used outside of
palmer
2016/11/24 01:05:55
Done.
|
| } |
| -#endif |
| +#endif // BASE_ALLOCATOR_PARTITION_ALLOCATOR_ADDRESS_SPACE_RANDOMIZATION |