Chromium Code Reviews| Index: Source/wtf/PartitionAlloc.h |
| diff --git a/Source/wtf/PartitionAlloc.h b/Source/wtf/PartitionAlloc.h |
| index 51430004a09483d44187abd040cf4249159dfabb..b1d30d60f35c5d059a92d1ff8b1e639d8a32bb49 100644 |
| --- a/Source/wtf/PartitionAlloc.h |
| +++ b/Source/wtf/PartitionAlloc.h |
| @@ -199,6 +199,9 @@ struct PartitionFreelistEntry { |
| PartitionFreelistEntry* next; |
| }; |
| + |
|
Chris Evans
2014/11/06 21:43:51
Nit: looks like a double newline here?
|
| +typedef void (*PartitionFreeUpMemoryCallback)(void); |
| + |
| // Some notes on page states. A page can be in one of three major states: |
| // 1) Active. |
| // 2) Full. |
| @@ -292,8 +295,11 @@ struct PartitionRootGeneric : public PartitionRootBase { |
| // Flags for partitionAllocGenericFlags. |
| enum PartitionAllocFlags { |
| PartitionAllocReturnNull = 1 << 0, |
| + // If you add a flag here, also update PartitionAllocFlagsInternal. |
| }; |
| +WTF_EXPORT void partitionSetFreeUpMemoryCallback(PartitionFreeUpMemoryCallback); |
| + |
| WTF_EXPORT void partitionAllocInit(PartitionRoot*, size_t numBuckets, size_t maxAllocation); |
| WTF_EXPORT bool partitionAllocShutdown(PartitionRoot*); |
| WTF_EXPORT void partitionAllocGenericInit(PartitionRootGeneric*); |
| @@ -652,6 +658,7 @@ private: |
| using WTF::SizeSpecificPartitionAllocator; |
| using WTF::PartitionAllocatorGeneric; |
| using WTF::PartitionRoot; |
| +using WTF::partitionSetFreeUpMemoryCallback; |
| using WTF::partitionAllocInit; |
| using WTF::partitionAllocShutdown; |
| using WTF::partitionAlloc; |