Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1043)

Side by Side Diff: base/sys_info.h

Issue 2860663005: Implement SysInfo::HardwareModelName() on iOS. (Closed)
Patch Set: Use different simulator macro. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | base/sys_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 // Return the total disk space in bytes on the volume containing |path|, or -1 63 // Return the total disk space in bytes on the volume containing |path|, or -1
64 // on failure. 64 // on failure.
65 static int64_t AmountOfTotalDiskSpace(const FilePath& path); 65 static int64_t AmountOfTotalDiskSpace(const FilePath& path);
66 66
67 // Returns system uptime. 67 // Returns system uptime.
68 static TimeDelta Uptime(); 68 static TimeDelta Uptime();
69 69
70 // Returns a descriptive string for the current machine model or an empty 70 // Returns a descriptive string for the current machine model or an empty
71 // string if the machine model is unknown or an error occured. 71 // string if the machine model is unknown or an error occured.
72 // e.g. "MacPro1,1" on Mac, or "Nexus 5" on Android. Only implemented on OS X, 72 // e.g. "MacPro1,1" on Mac, "iPhone9,3" on iOS or "Nexus 5" on Android. Only
73 // Android, and Chrome OS. This returns an empty string on other platforms. 73 // implemented on OS X, iOS, Android, and Chrome OS. This returns an empty
74 // string on other platforms.
74 static std::string HardwareModelName(); 75 static std::string HardwareModelName();
75 76
76 // Returns the name of the host operating system. 77 // Returns the name of the host operating system.
77 static std::string OperatingSystemName(); 78 static std::string OperatingSystemName();
78 79
79 // Returns the version of the host operating system. 80 // Returns the version of the host operating system.
80 static std::string OperatingSystemVersion(); 81 static std::string OperatingSystemVersion();
81 82
82 // Retrieves detailed numeric values for the OS version. 83 // Retrieves detailed numeric values for the OS version.
83 // DON'T USE THIS ON THE MAC OR WINDOWS to determine the current OS release 84 // DON'T USE THIS ON THE MAC OR WINDOWS to determine the current OS release
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 163
163 #if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_AIX) 164 #if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_AIX)
164 static int64_t AmountOfAvailablePhysicalMemory( 165 static int64_t AmountOfAvailablePhysicalMemory(
165 const SystemMemoryInfoKB& meminfo); 166 const SystemMemoryInfoKB& meminfo);
166 #endif 167 #endif
167 }; 168 };
168 169
169 } // namespace base 170 } // namespace base
170 171
171 #endif // BASE_SYS_INFO_H_ 172 #endif // BASE_SYS_INFO_H_
OLDNEW
« no previous file with comments | « no previous file | base/sys_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698