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

Unified Diff: base/sys_info.h

Issue 4079: Porting refactoring changes:... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 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 side-by-side diff with in-line comments
Download patch
Index: base/sys_info.h
===================================================================
--- base/sys_info.h (revision 2544)
+++ base/sys_info.h (working copy)
@@ -28,6 +28,31 @@
// or -1 on failure.
static int64 AmountOfFreeDiskSpace(const std::wstring& path);
+ // Return true if the given environment variable is defined.
+ // TODO: find a better place for HasEnvironmentVariable.
+ static bool HasEnvironmentVariable(const char* var);
+
+ // Return the value of the given environment variable
+ // or an empty string if not defined.
+ // TODO: find a better place for GetEnvironmentVariable.
+ static std::wstring GetEnvironmentVariable(const char* var);
+
+ // Returns the name of the host operating system.
+ static std::string OperatingSystemName();
+
+ // Returns the version of the host operating system.
+ static std::string OperatingSystemVersion();
+
+ // Returns the CPU architecture of the system. Exact return value may differ
+ // across platforms.
+ static std::string CPUArchitecture();
+
+ // Returns the pixel dimensions of the primary display via the
+ // width and height parameters.
+ static void GetPrimaryDisplayDimensions(int* width, int* height);
+
+ // Return the number of displays.
+ static int DisplayCount();
};
} // namespace base

Powered by Google App Engine
This is Rietveld 408576698