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

Unified Diff: runtime/bin/platform.h

Issue 8511001: Reapply directory error handling change. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Cut down on includes in posix version. Created 9 years, 1 month 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
« no previous file with comments | « runtime/bin/directory_win.cc ('k') | runtime/bin/platform_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/platform.h
diff --git a/runtime/bin/platform.h b/runtime/bin/platform.h
index e4e30aa4100a62f009a2f8e12a759cadebfacb83..b6aa090b5b88d13935a6ec7f511137ef817c950e 100644
--- a/runtime/bin/platform.h
+++ b/runtime/bin/platform.h
@@ -9,9 +9,18 @@
class Platform {
public:
+ // Returns the number of processors on the machine.
static int NumberOfProcessors();
+
+ // Returns a string representing the operating system ("linux",
+ // "macos" or "windows"). The returned string should not be
+ // deallocated by the caller.
static const char* OperatingSystem();
+ // Returns a string representation of an error code. The returned
+ // string must be deallocated by the caller.
+ static char* StrError(int error_code);
+
private:
DISALLOW_ALLOCATION();
DISALLOW_IMPLICIT_CONSTRUCTORS(Platform);
« no previous file with comments | « runtime/bin/directory_win.cc ('k') | runtime/bin/platform_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698