OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/base_export.h" | 9 #include "base/base_export.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // Linux Standard Base release information file. | 68 // Linux Standard Base release information file. |
69 static std::string GetLinuxStandardBaseVersionKey(); | 69 static std::string GetLinuxStandardBaseVersionKey(); |
70 | 70 |
71 // Parses /etc/lsb-release to get version information for Google Chrome OS. | 71 // Parses /etc/lsb-release to get version information for Google Chrome OS. |
72 // Declared here so it can be exposed for unit testing. | 72 // Declared here so it can be exposed for unit testing. |
73 static void ParseLsbRelease(const std::string& lsb_release, | 73 static void ParseLsbRelease(const std::string& lsb_release, |
74 int32* major_version, | 74 int32* major_version, |
75 int32* minor_version, | 75 int32* minor_version, |
76 int32* bugfix_version); | 76 int32* bugfix_version); |
77 #endif | 77 #endif |
| 78 |
| 79 #if defined(OS_ANDROID) |
| 80 static int DalvikHeapSizeMB(); |
| 81 #endif |
78 }; | 82 }; |
79 | 83 |
80 } // namespace base | 84 } // namespace base |
81 | 85 |
82 #endif // BASE_SYS_INFO_H_ | 86 #endif // BASE_SYS_INFO_H_ |
OLD | NEW |