Sylvain Defresne | a9ffa99 | 2023-06-19 09:29:06 | [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_BASE_PATHS_APPLE_H_ |
| 6 | #define BASE_BASE_PATHS_APPLE_H_ |
| 7 | |
| 8 | #include "base/files/file_path.h" |
| 9 | |
| 10 | namespace base::apple::internal { |
| 11 | |
| 12 | // Returns the absolute path to the executable. |
| 13 | base::FilePath GetExecutablePath(); |
| 14 | |
| 15 | // Returns true if the module for |address| is found. |path| will contain |
| 16 | // the path to the module. Note that |path| may not be absolute. |
| 17 | [[nodiscard]] bool GetModulePathForAddress(base::FilePath* path, |
| 18 | const void* address); |
| 19 | |
| 20 | } // namespace base::apple::internal |
| 21 | |
| 22 | #endif // BASE_BASE_PATHS_APPLE_H_ |