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

Unified Diff: base/allocator/partition_allocator/address_space_randomization.h

Issue 2518253002: Move Partition Allocator into Chromium base. (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698