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

Unified Diff: webkit/quota/quota_status_code.h

Issue 11363098: Added quota_status_code.h/cc file to hold QuotaStatusCode enum and added function to convert enum t… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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
Index: webkit/quota/quota_status_code.h
diff --git a/webkit/quota/quota_status_code.h b/webkit/quota/quota_status_code.h
new file mode 100644
index 0000000000000000000000000000000000000000..47eeb22090c6f6b0160ab35e747cb2e71823480a
--- /dev/null
+++ b/webkit/quota/quota_status_code.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBKIT_QUOTA_QUOTA_STATUS_CODE_H_
+#define WEBKIT_QUOTA_QUOTA_STATUS_CODE_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
+ kQuotaStatusUnknown = -1,
+};
+
+WEBKIT_STORAGE_EXPORT const char* QuotaStatusCodeToString(
+ QuotaStatusCode status);
+
+} // namespace quota
+
+#endif // WEBKIT_QUOTA_QUOTA_STATUS_CODE_H_

Powered by Google App Engine
This is Rietveld 408576698