• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2012 The Chromium Authors. All rights reserved.
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_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_ALLOC_BASE_IOS_IOS_UTIL_H_
6 #define BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_ALLOC_BASE_IOS_IOS_UTIL_H_
7 
8 #include <stdint.h>
9 
10 #include "base/allocator/partition_allocator/partition_alloc_base/component_export.h"
11 
12 namespace partition_alloc::internal::base::ios {
13 
14 // Returns whether the operating system is iOS 12 or later.
15 // TODO(crbug.com/1129482): Remove once minimum supported version is at least 12
16 PA_COMPONENT_EXPORT(PARTITION_ALLOC) bool IsRunningOnIOS12OrLater();
17 
18 // Returns whether the operating system is iOS 13 or later.
19 // TODO(crbug.com/1129483): Remove once minimum supported version is at least 13
20 PA_COMPONENT_EXPORT(PARTITION_ALLOC) bool IsRunningOnIOS13OrLater();
21 
22 // Returns whether the operating system is iOS 14 or later.
23 // TODO(crbug.com/1129484): Remove once minimum supported version is at least 14
24 PA_COMPONENT_EXPORT(PARTITION_ALLOC) bool IsRunningOnIOS14OrLater();
25 
26 // Returns whether the operating system is iOS 15 or later.
27 // TODO(crbug.com/1227419): Remove once minimum supported version is at least 15
28 PA_COMPONENT_EXPORT(PARTITION_ALLOC) bool IsRunningOnIOS15OrLater();
29 
30 // Returns whether the operating system is at the given version or later.
31 PA_COMPONENT_EXPORT(PARTITION_ALLOC)
32 bool IsRunningOnOrLater(int32_t major, int32_t minor, int32_t bug_fix);
33 
34 }  // namespace partition_alloc::internal::base::ios
35 
36 #endif  // BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_ALLOC_BASE_IOS_IOS_UTIL_H_
37