diff options
author | dumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-24 20:26:23 +0000 |
---|---|---|
committer | dumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-24 20:26:23 +0000 |
commit | d480a3ecadc882225c2b249346dae3759e3f8fce (patch) | |
tree | d55e2570388f613e295daf34454bb40c2b787d99 /base/platform_file.h | |
parent | 27dff5f0003a845b99e1718771ebf29b04cff0a6 (diff) | |
download | chromium_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.h | 7 |
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. |