• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2024 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_MAC_INFO_PLIST_DATA_H_
6 #define BASE_MAC_INFO_PLIST_DATA_H_
7 
8 #include <stdint.h>
9 
10 #include <vector>
11 
12 #include "base/base_export.h"
13 
14 namespace base::mac {
15 
16 // Returns the outer bundle's Info.plist data.
17 //
18 // This data is derived from NSBundle's cached copy of the Info.plist
19 // rather than being read from disk. This ensures that it matches the running
20 // application, even if the Info.plist in the outer bundle has been modified on
21 // disk due to a pending update.
22 //
23 // This is intended to be used for dynamic-only code signature validation.
24 // See ProcessRequirement::Builder::CheckDynamicValidityOnly.
25 BASE_EXPORT
26 std::vector<uint8_t> OuterBundleCachedInfoPlistData();
27 }  // namespace base::mac
28 
29 #endif  // BASE_MAC_INFO_PLIST_DATA_H_
30