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

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: code refinement for mac and ios impl 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.
Mark Mentovai 2012/09/06 14:38:14 Document “unknown”. Although personally I’d prefe
Hongbo Min 2012/09/06 14:45:00 Agree to use empty string directly instead of “unk
59 static std::string CPUModelName();
60
58 // Return the smallest amount of memory (in bytes) which the VM system will 61 // Return the smallest amount of memory (in bytes) which the VM system will
59 // allocate. 62 // allocate.
60 static size_t VMAllocationGranularity(); 63 static size_t VMAllocationGranularity();
61 64
62 #if defined(OS_POSIX) && !defined(OS_MACOSX) 65 #if defined(OS_POSIX) && !defined(OS_MACOSX)
63 // Returns the maximum SysV shared memory segment size. 66 // Returns the maximum SysV shared memory segment size.
64 static size_t MaxSharedMemorySize(); 67 static size_t MaxSharedMemorySize();
65 #endif // defined(OS_POSIX) && !defined(OS_MACOSX) 68 #endif // defined(OS_POSIX) && !defined(OS_MACOSX)
66 69
67 #if defined(OS_CHROMEOS) 70 #if defined(OS_CHROMEOS)
(...skipping 22 matching lines...) Expand all
90 // Returns the device's name. 93 // Returns the device's name.
91 static std::string GetDeviceName(); 94 static std::string GetDeviceName();
92 95
93 static int DalvikHeapSizeMB(); 96 static int DalvikHeapSizeMB();
94 #endif // defined(OS_ANDROID) 97 #endif // defined(OS_ANDROID)
95 }; 98 };
96 99
97 } // namespace base 100 } // namespace base
98 101
99 #endif // BASE_SYS_INFO_H_ 102 #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