Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Unified Diff: webkit/quota/quota_status_code.h

Issue 11434107: QuotaStatusCode: Use enum names instead of hard coding the values (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/quota/quota_status_code.h
diff --git a/webkit/quota/quota_status_code.h b/webkit/quota/quota_status_code.h
index 47eeb22090c6f6b0160ab35e747cb2e71823480a..1261a31b82a72670d88cedcf2c5e9894ec6bc965 100644
--- a/webkit/quota/quota_status_code.h
+++ b/webkit/quota/quota_status_code.h
@@ -5,18 +5,18 @@
#ifndef 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"
namespace quota {
-// The numbers should match with the error code defined in
-// third_party/WebKit/Source/WebCore/dom/ExceptionCode.h.
enum QuotaStatusCode {
kQuotaStatusOk = 0,
- kQuotaErrorNotSupported = 9, // NOT_SUPPORTED_ERR
- kQuotaErrorInvalidModification = 13, // INVALID_MODIFICATION_ERR
- kQuotaErrorInvalidAccess = 15, // INVALID_ACCESS_ERR
- kQuotaErrorAbort = 20, // ABORT_ERR
+ kQuotaErrorNotSupported = WebKit::WebStorageQuotaErrorNotSupported,
+ kQuotaErrorInvalidModification =
+ WebKit::WebStorageQuotaErrorInvalidModification,
+ kQuotaErrorInvalidAccess = WebKit::WebStorageQuotaErrorInvalidAccess,
+ kQuotaErrorAbort = WebKit::WebStorageQuotaErrorAbort,
kQuotaStatusUnknown = -1,
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698