OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 PageMemory_h | 5 #ifndef PageMemory_h |
6 #define PageMemory_h | 6 #define PageMemory_h |
7 | 7 |
8 #include "platform/heap/HeapPage.h" | 8 #include "platform/heap/HeapPage.h" |
9 #include "wtf/Allocator.h" | 9 #include "wtf/Allocator.h" |
10 #include "wtf/Assertions.h" | 10 #include "wtf/Assertions.h" |
11 #include "wtf/PageAllocator.h" | 11 #include "wtf/allocator/PageAllocator.h" |
12 | 12 |
13 #if OS(POSIX) | 13 #if OS(POSIX) |
14 #include <sys/mman.h> | 14 #include <sys/mman.h> |
15 #include <unistd.h> | 15 #include <unistd.h> |
16 #endif | 16 #endif |
17 | 17 |
18 namespace blink { | 18 namespace blink { |
19 | 19 |
20 class RegionTree; | 20 class RegionTree; |
21 class RegionTreeNode; | 21 class RegionTreeNode; |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 private: | 217 private: |
218 PageMemory(PageMemoryRegion* reserved, const MemoryRegion& writable); | 218 PageMemory(PageMemoryRegion* reserved, const MemoryRegion& writable); |
219 | 219 |
220 PageMemoryRegion* m_reserved; | 220 PageMemoryRegion* m_reserved; |
221 MemoryRegion m_writable; | 221 MemoryRegion m_writable; |
222 }; | 222 }; |
223 | 223 |
224 } // namespace blink | 224 } // namespace blink |
225 | 225 |
226 #endif | 226 #endif |
OLD | NEW |