Chromium Code Reviews| 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_SYS_INFO_H_ | 5 #ifndef BASE_SYS_INFO_H_ |
| 6 #define BASE_SYS_INFO_H_ | 6 #define BASE_SYS_INFO_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/base_export.h" | 10 #include "base/base_export.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 93 static std::string GetAndroidBuildCodename(); | 93 static std::string GetAndroidBuildCodename(); |
| 94 | 94 |
| 95 // Returns the Android build ID. | 95 // Returns the Android build ID. |
| 96 static std::string GetAndroidBuildID(); | 96 static std::string GetAndroidBuildID(); |
| 97 | 97 |
| 98 // Returns the device's name. | 98 // Returns the device's name. |
| 99 static std::string GetDeviceName(); | 99 static std::string GetDeviceName(); |
| 100 | 100 |
| 101 static int DalvikHeapSizeMB(); | 101 static int DalvikHeapSizeMB(); |
| 102 #endif // defined(OS_ANDROID) | 102 #endif // defined(OS_ANDROID) |
| 103 | |
| 104 #if defined(OS_IOS) | |
| 105 // Running on iOS 5 or later? | |
| 106 static bool IsRunningOnIOS5OrLater(); | |
| 107 | |
| 108 // Running on iOS 6 or later? | |
| 109 static bool IsRunningOnIOS6OrLater(); | |
| 110 | |
| 111 // Running on a specific iOS version or later. | |
| 112 static bool IsRunningOnOrLater(int major, int minor, int bugFix); | |
|
Mark Mentovai
2012/10/05 12:49:05
bug_fix
qsr
2012/10/05 14:53:56
Done.
| |
| 113 #endif // defined(OS_IOS) | |
| 103 }; | 114 }; |
| 104 | 115 |
| 105 } // namespace base | 116 } // namespace base |
| 106 | 117 |
| 107 #endif // BASE_SYS_INFO_H_ | 118 #endif // BASE_SYS_INFO_H_ |
| OLD | NEW |