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

Side by Side Diff: third_party/WebKit/Source/platform/heap/PageMemory.h

Issue 2518253002: Move Partition Allocator into Chromium base. (Closed)
Patch Set: Move OOM_CRASH into its own, more specific header. Fixes Windows build. Created 4 years 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
OLDNEW
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/Compiler.h" 11 #include "wtf/Compiler.h"
12 #include "wtf/allocator/PageAllocator.h" 12 #include "wtf/allocator/Partitions.h"
13 13
14 #if OS(POSIX) 14 #if OS(POSIX)
15 #include <sys/mman.h> 15 #include <sys/mman.h>
16 #include <unistd.h> 16 #include <unistd.h>
17 #endif 17 #endif
18 18
19 namespace blink { 19 namespace blink {
20 20
21 class RegionTree; 21 class RegionTree;
22 class RegionTreeNode; 22 class RegionTreeNode;
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 private: 205 private:
206 PageMemory(PageMemoryRegion* reserved, const MemoryRegion& writable); 206 PageMemory(PageMemoryRegion* reserved, const MemoryRegion& writable);
207 207
208 PageMemoryRegion* m_reserved; 208 PageMemoryRegion* m_reserved;
209 MemoryRegion m_writable; 209 MemoryRegion m_writable;
210 }; 210 };
211 211
212 } // namespace blink 212 } // namespace blink
213 213
214 #endif 214 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698