diff options
author | John Reck <jreck@google.com> | 2010-11-04 12:00:17 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2010-11-09 11:35:04 -0800 |
commit | e14391e94c850b8bd03680c23b38978db68687a8 (patch) | |
tree | 3fed87e6620fecaf3edc7259ae58a11662bedcb2 /WebCore/fileapi/FileError.h | |
parent | 1bd705833a68f07850cf7e204b26f8d328d16951 (diff) | |
download | external_webkit-e14391e94c850b8bd03680c23b38978db68687a8.zip external_webkit-e14391e94c850b8bd03680c23b38978db68687a8.tar.gz external_webkit-e14391e94c850b8bd03680c23b38978db68687a8.tar.bz2 |
Merge Webkit at r70949: Initial merge by git.
Change-Id: I77b8645c083b5d0da8dba73ed01d4014aab9848e
Diffstat (limited to 'WebCore/fileapi/FileError.h')
-rw-r--r-- | WebCore/fileapi/FileError.h | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/WebCore/fileapi/FileError.h b/WebCore/fileapi/FileError.h index 3528109..27ad397 100644 --- a/WebCore/fileapi/FileError.h +++ b/WebCore/fileapi/FileError.h @@ -33,7 +33,6 @@ #if ENABLE(BLOB) || ENABLE(FILE_SYSTEM) -#include "ExceptionCode.h" #include <wtf/PassRefPtr.h> #include <wtf/RefCounted.h> @@ -41,16 +40,31 @@ namespace WebCore { class FileError : public RefCounted<FileError> { public: - static PassRefPtr<FileError> create(ExceptionCode code) { return adoptRef(new FileError(code)); } + enum ErrorCode { + NOT_FOUND_ERR = 1, + SECURITY_ERR = 2, + ABORT_ERR = 3, + NOT_READABLE_ERR = 4, + ENCODING_ERR = 5, + NO_MODIFICATION_ALLOWED_ERR = 6, + INVALID_STATE_ERR = 7, + SYNTAX_ERR = 8, + INVALID_MODIFICATION_ERR = 9, + QUOTA_EXCEEDED_ERR = 10, + TYPE_MISMATCH_ERR = 11, + PATH_EXISTS_ERR = 12, + }; - ExceptionCode code() const { return m_code; } + static PassRefPtr<FileError> create(ErrorCode code) { return adoptRef(new FileError(code)); } + + ErrorCode code() const { return m_code; } private: - FileError(ExceptionCode code) + FileError(ErrorCode code) : m_code(code) { } - ExceptionCode m_code; + ErrorCode m_code; }; } // namespace WebCore |