Commit 4267cb8f authored by arv@chromium.org's avatar arv@chromium.org

QuotaStatusCode: Use enum names instead of hard coding the values

This is blocking https://bugs.webkit.org/show_bug.cgi?id=102726 since
QuotaStatusCode hard codes the values which prevents us from changing those
values.

BUG=None


Review URL: https://chromiumcodereview.appspot.com/11434107

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171133 0039d316-1c4b-4281-b951-d872f2087c98
parent 4f01c76e
...@@ -5,18 +5,18 @@ ...@@ -5,18 +5,18 @@
#ifndef WEBKIT_QUOTA_QUOTA_STATUS_CODE_H_ #ifndef WEBKIT_QUOTA_QUOTA_STATUS_CODE_H_
#define WEBKIT_QUOTA_QUOTA_STATUS_CODE_H_ #define WEBKIT_QUOTA_QUOTA_STATUS_CODE_H_
#include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaError.h"
#include "webkit/storage/webkit_storage_export.h" #include "webkit/storage/webkit_storage_export.h"
namespace quota { namespace quota {
// The numbers should match with the error code defined in
// third_party/WebKit/Source/WebCore/dom/ExceptionCode.h.
enum QuotaStatusCode { enum QuotaStatusCode {
kQuotaStatusOk = 0, kQuotaStatusOk = 0,
kQuotaErrorNotSupported = 9, // NOT_SUPPORTED_ERR kQuotaErrorNotSupported = WebKit::WebStorageQuotaErrorNotSupported,
kQuotaErrorInvalidModification = 13, // INVALID_MODIFICATION_ERR kQuotaErrorInvalidModification =
kQuotaErrorInvalidAccess = 15, // INVALID_ACCESS_ERR WebKit::WebStorageQuotaErrorInvalidModification,
kQuotaErrorAbort = 20, // ABORT_ERR kQuotaErrorInvalidAccess = WebKit::WebStorageQuotaErrorInvalidAccess,
kQuotaErrorAbort = WebKit::WebStorageQuotaErrorAbort,
kQuotaStatusUnknown = -1, kQuotaStatusUnknown = -1,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment