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

Side by Side Diff: base/sys_info.h

Issue 18622: POSIX: Porting renderer/render_process.cc, low hanging fruit (Closed)
Patch Set: Created 11 years, 11 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_posix.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) 2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2008 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/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 #include <string> 10 #include <string>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // Returns the CPU architecture of the system. Exact return value may differ 46 // Returns the CPU architecture of the system. Exact return value may differ
47 // across platforms. 47 // across platforms.
48 static std::string CPUArchitecture(); 48 static std::string CPUArchitecture();
49 49
50 // Returns the pixel dimensions of the primary display via the 50 // Returns the pixel dimensions of the primary display via the
51 // width and height parameters. 51 // width and height parameters.
52 static void GetPrimaryDisplayDimensions(int* width, int* height); 52 static void GetPrimaryDisplayDimensions(int* width, int* height);
53 53
54 // Return the number of displays. 54 // Return the number of displays.
55 static int DisplayCount(); 55 static int DisplayCount();
56
57 // Return the smallest amount of memory (in bytes) which the VM system will al locate.
58 static size_t VMAllocationGranularity();
56 }; 59 };
57 60
58 } // namespace base 61 } // namespace base
59 62
60 #endif // BASE_SYS_INFO_H_ 63 #endif // BASE_SYS_INFO_H_
OLDNEW
« no previous file with comments | « no previous file | base/sys_info_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698