blob: 00bcac84379af120c579b8f61cc3ff64f09ef4a1 [file] [log] [blame]
Cronet Mainline Engec3a8e82023-08-14 17:15:38 +00001// 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
10namespace base::apple::internal {
11
12// Returns the absolute path to the executable.
13base::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_