1 // Copyright 2012 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 PARTITION_ALLOC_PARTITION_ALLOC_BASE_SYSTEM_SYS_INFO_H_
6 #define PARTITION_ALLOC_PARTITION_ALLOC_BASE_SYSTEM_SYS_INFO_H_
7 
8 #include <cstdint>
9 
10 #include "partition_alloc/partition_alloc_base/component_export.h"
11 
12 namespace partition_alloc::internal::base {
13 
PA_COMPONENT_EXPORT(PARTITION_ALLOC_BASE)14 class PA_COMPONENT_EXPORT(PARTITION_ALLOC_BASE) SysInfo {
15  public:
16   // Retrieves detailed numeric values for the OS version.
17   // DON'T USE THIS ON THE MAC OR WINDOWS to determine the current OS release
18   // for OS version-specific feature checks and workarounds. If you must use an
19   // OS version check instead of a feature check, use
20   // base::mac::MacOSMajorVersion() from base/mac/mac_util.h, or
21   // base::win::GetVersion() from base/win/windows_version.h.
22   static void OperatingSystemVersionNumbers(int32_t* major_version,
23                                             int32_t* minor_version,
24                                             int32_t* bugfix_version);
25 };
26 
27 }  // namespace partition_alloc::internal::base
28 
29 #endif  // PARTITION_ALLOC_PARTITION_ALLOC_BASE_SYSTEM_SYS_INFO_H_
30