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

Unified Diff: runtime/bin/file.h

Issue 9839053: Add error handling to random access file (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased to r5810 Created 8 years, 9 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
« no previous file with comments | « runtime/bin/dartutils.cc ('k') | runtime/bin/file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file.h
diff --git a/runtime/bin/file.h b/runtime/bin/file.h
index 0fdc398640235f500997b2283d2e12f51313be74..d0eb44fe59f2b673e650ba7d4a4dda3658e599a0 100644
--- a/runtime/bin/file.h
+++ b/runtime/bin/file.h
@@ -102,7 +102,10 @@ class File {
bool Truncate(int64_t length);
// Flush contents of file.
- void Flush();
+ bool Flush();
+
+ // Returns whether the file has been closed.
+ bool IsClosed();
const char* name() const { return name_; }
@@ -134,7 +137,6 @@ class File {
private:
File(const char* name, FileHandle* handle) : name_(name), handle_(handle) { }
void Close();
- bool IsClosed();
static const int kClosedFd = -1;
« no previous file with comments | « runtime/bin/dartutils.cc ('k') | runtime/bin/file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698