// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef GIN_V8_PLATFORM_PAGE_ALLOCATOR_H_ #define GIN_V8_PLATFORM_PAGE_ALLOCATOR_H_ #include "build/build_config.h" #include "build/buildflag.h" #include "partition_alloc/buildflags.h" #if PA_BUILDFLAG(USE_PARTITION_ALLOC) #include "gin/gin_export.h" #include "partition_alloc/page_allocator.h" #include "v8/include/v8-platform.h" namespace gin { // A v8::PageAllocator implementation to use with gin. class GIN_EXPORT PageAllocator final : public v8::PageAllocator { … }; } // namespace gin #endif // PA_BUILDFLAG(USE_PARTITION_ALLOC) #endif // GIN_V8_PLATFORM_PAGE_ALLOCATOR_H_