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

Side by Side Diff: base/sys_info.h

Issue 10914060: Refine systemInfo.cpu API defintions and provide systemInfo.cpu.get impl for Windows and Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | base/sys_info_ios.mm » ('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 "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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Returns the CPU architecture of the system. Exact return value may differ 54 // Returns the CPU architecture of the system. Exact return value may differ
55 // across platforms. 55 // across platforms.
56 static std::string CPUArchitecture(); 56 static std::string CPUArchitecture();
57 57
58 // Returns the CPU model name of the system. If it can not be figured out,
59 // an empty string is returned.
60 static std::string CPUModelName();
61
58 // Return the smallest amount of memory (in bytes) which the VM system will 62 // Return the smallest amount of memory (in bytes) which the VM system will
59 // allocate. 63 // allocate.
60 static size_t VMAllocationGranularity(); 64 static size_t VMAllocationGranularity();
61 65
62 #if defined(OS_POSIX) && !defined(OS_MACOSX) 66 #if defined(OS_POSIX) && !defined(OS_MACOSX)
63 // Returns the maximum SysV shared memory segment size. 67 // Returns the maximum SysV shared memory segment size.
64 static size_t MaxSharedMemorySize(); 68 static size_t MaxSharedMemorySize();
65 #endif // defined(OS_POSIX) && !defined(OS_MACOSX) 69 #endif // defined(OS_POSIX) && !defined(OS_MACOSX)
66 70
67 #if defined(OS_CHROMEOS) 71 #if defined(OS_CHROMEOS)
(...skipping 22 matching lines...) Expand all
90 // Returns the device's name. 94 // Returns the device's name.
91 static std::string GetDeviceName(); 95 static std::string GetDeviceName();
92 96
93 static int DalvikHeapSizeMB(); 97 static int DalvikHeapSizeMB();
94 #endif // defined(OS_ANDROID) 98 #endif // defined(OS_ANDROID)
95 }; 99 };
96 100
97 } // namespace base 101 } // namespace base
98 102
99 #endif // BASE_SYS_INFO_H_ 103 #endif // BASE_SYS_INFO_H_
OLDNEW
« no previous file with comments | « no previous file | base/sys_info_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698