Sergei Glazunov | 29099d7 | 2023-01-12 16:07:56 | [diff] [blame] | 1 | // Copyright 2023 The Chromium Authors |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef BASE_MEMORY_RAW_PTR_ASAN_HOOKS_H_ |
| 6 | #define BASE_MEMORY_RAW_PTR_ASAN_HOOKS_H_ |
| 7 | |
Arthur Sonzogni | fd39d61 | 2024-06-26 08:16:23 | [diff] [blame] | 8 | #include "partition_alloc/buildflags.h" |
Sergei Glazunov | 29099d7 | 2023-01-12 16:07:56 | [diff] [blame] | 9 | |
Arthur Sonzogni | 62e877a | 2024-04-30 16:09:43 | [diff] [blame] | 10 | #if PA_BUILDFLAG(USE_ASAN_BACKUP_REF_PTR) |
Sergei Glazunov | 29099d7 | 2023-01-12 16:07:56 | [diff] [blame] | 11 | |
| 12 | #include "base/memory/raw_ptr.h" |
| 13 | |
| 14 | namespace base::internal { |
| 15 | |
| 16 | const RawPtrHooks* GetRawPtrAsanHooks(); |
| 17 | |
| 18 | } |
| 19 | |
Arthur Sonzogni | 62e877a | 2024-04-30 16:09:43 | [diff] [blame] | 20 | #endif // PA_BUILDFLAG(USE_ASAN_BACKUP_REF_PTR) |
Sergei Glazunov | 29099d7 | 2023-01-12 16:07:56 | [diff] [blame] | 21 | |
| 22 | #endif // BASE_MEMORY_RAW_PTR_ASAN_HOOKS_H_ |