| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BASE_MAC_MAC_UTIL_H_ | 5 #ifndef BASE_MAC_MAC_UTIL_H_ |
| 6 #define BASE_MAC_MAC_UTIL_H_ | 6 #define BASE_MAC_MAC_UTIL_H_ |
| 7 | 7 |
| 8 #include <AvailabilityMacros.h> | 8 #include <AvailabilityMacros.h> |
| 9 #include <Carbon/Carbon.h> | 9 #include <Carbon/Carbon.h> |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 112 |
| 113 // Remove the quarantine xattr from the given file. Returns false if there was | 113 // Remove the quarantine xattr from the given file. Returns false if there was |
| 114 // an error, or true otherwise. | 114 // an error, or true otherwise. |
| 115 BASE_EXPORT bool RemoveQuarantineAttribute(const FilePath& file_path); | 115 BASE_EXPORT bool RemoveQuarantineAttribute(const FilePath& file_path); |
| 116 | 116 |
| 117 // Run-time OS version checks. Use these instead of | 117 // Run-time OS version checks. Use these instead of |
| 118 // base::SysInfo::OperatingSystemVersionNumbers. Prefer the "OrEarlier" and | 118 // base::SysInfo::OperatingSystemVersionNumbers. Prefer the "OrEarlier" and |
| 119 // "OrLater" variants to those that check for a specific version, unless you | 119 // "OrLater" variants to those that check for a specific version, unless you |
| 120 // know for sure that you need to check for a specific version. | 120 // know for sure that you need to check for a specific version. |
| 121 | 121 |
| 122 // Snow Leopard is Mac OS X 10.6, Darwin 10. | |
| 123 BASE_EXPORT bool IsOSSnowLeopard(); | |
| 124 | |
| 125 // Lion is Mac OS X 10.7, Darwin 11. | 122 // Lion is Mac OS X 10.7, Darwin 11. |
| 126 BASE_EXPORT bool IsOSLion(); | 123 BASE_EXPORT bool IsOSLion(); |
| 127 BASE_EXPORT bool IsOSLionOrEarlier(); | 124 BASE_EXPORT bool IsOSLionOrEarlier(); |
| 128 BASE_EXPORT bool IsOSLionOrLater(); | 125 BASE_EXPORT bool IsOSLionOrLater(); |
| 129 | 126 |
| 130 // Mountain Lion is Mac OS X 10.8, Darwin 12. | 127 // Mountain Lion is Mac OS X 10.8, Darwin 12. |
| 131 BASE_EXPORT bool IsOSMountainLion(); | 128 BASE_EXPORT bool IsOSMountainLion(); |
| 132 BASE_EXPORT bool IsOSMountainLionOrEarlier(); | 129 BASE_EXPORT bool IsOSMountainLionOrEarlier(); |
| 133 BASE_EXPORT bool IsOSMountainLionOrLater(); | 130 BASE_EXPORT bool IsOSMountainLionOrLater(); |
| 134 | 131 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 // If any error occurs, none of the input pointers are touched. | 231 // If any error occurs, none of the input pointers are touched. |
| 235 BASE_EXPORT bool ParseModelIdentifier(const std::string& ident, | 232 BASE_EXPORT bool ParseModelIdentifier(const std::string& ident, |
| 236 std::string* type, | 233 std::string* type, |
| 237 int32_t* major, | 234 int32_t* major, |
| 238 int32_t* minor); | 235 int32_t* minor); |
| 239 | 236 |
| 240 } // namespace mac | 237 } // namespace mac |
| 241 } // namespace base | 238 } // namespace base |
| 242 | 239 |
| 243 #endif // BASE_MAC_MAC_UTIL_H_ | 240 #endif // BASE_MAC_MAC_UTIL_H_ |
| OLD | NEW |