xref: /aosp_15_r20/external/cronet/base/base_paths_apple.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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_
23