summaryrefslogtreecommitdiffstats
path: root/base/platform_file.h
diff options
context:
space:
mode:
authordumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-24 20:26:23 +0000
committerdumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-24 20:26:23 +0000
commitd480a3ecadc882225c2b249346dae3759e3f8fce (patch)
treed55e2570388f613e295daf34454bb40c2b787d99 /base/platform_file.h
parent27dff5f0003a845b99e1718771ebf29b04cff0a6 (diff)
downloadchromium_src-d480a3ecadc882225c2b249346dae3759e3f8fce.zip
chromium_src-d480a3ecadc882225c2b249346dae3759e3f8fce.tar.gz
chromium_src-d480a3ecadc882225c2b249346dae3759e3f8fce.tar.bz2
Change the FileUtilProxy callbacks to report error codes instead of booleans.
BUG=none TEST=none Review URL: http://codereview.chromium.org/3165050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57228 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/platform_file.h')
-rw-r--r--base/platform_file.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/base/platform_file.h b/base/platform_file.h
index 43f8511..0216c71 100644
--- a/base/platform_file.h
+++ b/base/platform_file.h
@@ -40,6 +40,13 @@ enum PlatformFileFlags {
PLATFORM_FILE_DELETE_ON_CLOSE = 2048
};
+// TODO(dumi): add more specific error codes for CreatePlatformFile().
+// TODO(dumi): add more error codes as we add new methods to FileUtilProxy.
+enum PlatformFileErrors {
+ PLATFORM_FILE_OK = 0,
+ PLATFORM_FILE_ERROR = -1
+};
+
// Creates or opens the given file. If PLATFORM_FILE_OPEN_ALWAYS is used, and
// |created| is provided, |created| will be set to true if the file was created
// or to false in case the file was just opened.