diff options
author | dgrogan@chromium.org <dgrogan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-02 18:38:22 +0000 |
---|---|---|
committer | dgrogan@chromium.org <dgrogan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-02 18:38:22 +0000 |
commit | 065499f70249cd46f7c04e727e90207179e39408 (patch) | |
tree | 0ff28b4644490416acfe4595a02e65abd04952ad /base/platform_file.h | |
parent | 49fd1defd074fcc5fadbb0c45e8d2646626b58ee (diff) | |
download | chromium_src-065499f70249cd46f7c04e727e90207179e39408.zip chromium_src-065499f70249cd46f7c04e727e90207179e39408.tar.gz chromium_src-065499f70249cd46f7c04e727e90207179e39408.tar.bz2 |
Add more error codes to base::CreatePlatformFile on windows.
This is a rough classification of the errors that showed up in the
PlatformFile.UnknownCreateFileErrors histogram. I added an IO entry to
to the enum because a bunch of the errors seem to indicate a low-level
problem that is out of the application programmer's control.
BUG=229252
R=jar@chromium.org
Review URL: https://codereview.chromium.org/14586003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197947 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/platform_file.h')
-rw-r--r-- | base/platform_file.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/base/platform_file.h b/base/platform_file.h index b1efaaa..43758c5 100644 --- a/base/platform_file.h +++ b/base/platform_file.h @@ -79,8 +79,9 @@ enum PlatformFileError { PLATFORM_FILE_ERROR_NOT_A_FILE = -13, PLATFORM_FILE_ERROR_NOT_EMPTY = -14, PLATFORM_FILE_ERROR_INVALID_URL = -15, + PLATFORM_FILE_ERROR_IO = -16, // Put new entries here and increment PLATFORM_FILE_ERROR_MAX. - PLATFORM_FILE_ERROR_MAX = -16 + PLATFORM_FILE_ERROR_MAX = -17 }; // This explicit mapping matches both FILE_ on Windows and SEEK_ on Linux. |