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 "base/base_export.h" | 8 #include "base/base_export.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
44 // corresponding unit test. | 44 // corresponding unit test. |
45 // DON'T USE THIS ON THE MAC OR WINDOWS to determine the current OS release | 45 // DON'T USE THIS ON THE MAC OR WINDOWS to determine the current OS release |
46 // for OS version-specific feature checks and workarounds. If you must use | 46 // for OS version-specific feature checks and workarounds. If you must use |
47 // an OS version check instead of a feature check, use the base::mac::IsOS* | 47 // an OS version check instead of a feature check, use the base::mac::IsOS* |
48 // family from base/mac/mac_util.h, or base::win::GetVersion from | 48 // family from base/mac/mac_util.h, or base::win::GetVersion from |
49 // base/win/windows_version.h. | 49 // base/win/windows_version.h. |
50 static void OperatingSystemVersionNumbers(int32* major_version, | 50 static void OperatingSystemVersionNumbers(int32* major_version, |
51 int32* minor_version, | 51 int32* minor_version, |
52 int32* bugfix_version); | 52 int32* bugfix_version); |
53 | 53 |
54 #if defined(OS_ANDROID) | |
willchan no longer on Chromium
2012/08/14 17:51:09
Why does this live here instead of webkit/glue, wh
gone
2012/08/14 17:58:37
It's not used solely for the user agent, but I'll
| |
55 // Returns a string containing detailed info about the environment. | |
56 static std::string OperatingSystemInformation(); | |
57 #endif | |
58 | |
54 // Returns the CPU architecture of the system. Exact return value may differ | 59 // Returns the CPU architecture of the system. Exact return value may differ |
55 // across platforms. | 60 // across platforms. |
56 static std::string CPUArchitecture(); | 61 static std::string CPUArchitecture(); |
57 | 62 |
58 // Return the smallest amount of memory (in bytes) which the VM system will | 63 // Return the smallest amount of memory (in bytes) which the VM system will |
59 // allocate. | 64 // allocate. |
60 static size_t VMAllocationGranularity(); | 65 static size_t VMAllocationGranularity(); |
61 | 66 |
62 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 67 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
63 // Returns the maximum SysV shared memory segment size. | 68 // Returns the maximum SysV shared memory segment size. |
(...skipping 17 matching lines...) Expand all Loading... | |
81 #endif // defined(OS_CHROMEOS) | 86 #endif // defined(OS_CHROMEOS) |
82 | 87 |
83 #if defined(OS_ANDROID) | 88 #if defined(OS_ANDROID) |
84 static int DalvikHeapSizeMB(); | 89 static int DalvikHeapSizeMB(); |
85 #endif // defined(OS_ANDROID) | 90 #endif // defined(OS_ANDROID) |
86 }; | 91 }; |
87 | 92 |
88 } // namespace base | 93 } // namespace base |
89 | 94 |
90 #endif // BASE_SYS_INFO_H_ | 95 #endif // BASE_SYS_INFO_H_ |
OLD | NEW |