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

Side by Side Diff: base/sys_info.h

Issue 199105: Continue with the FreeBSD port - this version builds and links, though... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 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 | « base/platform_thread_posix.cc ('k') | 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // width and height parameters. 58 // width and height parameters.
59 static void GetPrimaryDisplayDimensions(int* width, int* height); 59 static void GetPrimaryDisplayDimensions(int* width, int* height);
60 60
61 // Return the number of displays. 61 // Return the number of displays.
62 static int DisplayCount(); 62 static int DisplayCount();
63 63
64 // Return the smallest amount of memory (in bytes) which the VM system will 64 // Return the smallest amount of memory (in bytes) which the VM system will
65 // allocate. 65 // allocate.
66 static size_t VMAllocationGranularity(); 66 static size_t VMAllocationGranularity();
67 67
68 #if defined(OS_LINUX) 68 #if defined(OS_LINUX) || defined(OS_FREEBSD)
69 // Returns the maximum SysV shared memory segment size. 69 // Returns the maximum SysV shared memory segment size.
70 static size_t MaxSharedMemorySize(); 70 static size_t MaxSharedMemorySize();
71 #endif 71 #endif
72 72
73 #if defined(OS_CHROMEOS) 73 #if defined(OS_CHROMEOS)
74 // Returns the name of the version entry we wish to look up in the 74 // Returns the name of the version entry we wish to look up in the
75 // Linux Standard Base release information file. 75 // Linux Standard Base release information file.
76 static std::string GetLinuxStandardBaseVersionKey(); 76 static std::string GetLinuxStandardBaseVersionKey();
77 77
78 // Parses /etc/lsb-release to get version information for Google Chrome OS. 78 // Parses /etc/lsb-release to get version information for Google Chrome OS.
79 // Declared here so it can be exposed for unit testing. 79 // Declared here so it can be exposed for unit testing.
80 static void ParseLsbRelease(const std::string& lsb_release, 80 static void ParseLsbRelease(const std::string& lsb_release,
81 int32 *major_version, 81 int32 *major_version,
82 int32 *minor_version, 82 int32 *minor_version,
83 int32 *bugfix_version); 83 int32 *bugfix_version);
84 #endif 84 #endif
85 }; 85 };
86 86
87 } // namespace base 87 } // namespace base
88 88
89 #endif // BASE_SYS_INFO_H_ 89 #endif // BASE_SYS_INFO_H_
OLDNEW
« no previous file with comments | « base/platform_thread_posix.cc ('k') | base/sys_info_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698