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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_QUOTA_QUOTA_STATUS_CODE_H_ 5 #ifndef WEBKIT_QUOTA_QUOTA_STATUS_CODE_H_
6 #define WEBKIT_QUOTA_QUOTA_STATUS_CODE_H_ 6 #define WEBKIT_QUOTA_QUOTA_STATUS_CODE_H_
7 7
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaError. h"
8 #include "webkit/storage/webkit_storage_export.h" 9 #include "webkit/storage/webkit_storage_export.h"
9 10
10 namespace quota { 11 namespace quota {
11 12
12 // The numbers should match with the error code defined in
13 // third_party/WebKit/Source/WebCore/dom/ExceptionCode.h.
14 enum QuotaStatusCode { 13 enum QuotaStatusCode {
15 kQuotaStatusOk = 0, 14 kQuotaStatusOk = 0,
16 kQuotaErrorNotSupported = 9, // NOT_SUPPORTED_ERR 15 kQuotaErrorNotSupported = WebKit::WebStorageQuotaErrorNotSupported,
17 kQuotaErrorInvalidModification = 13, // INVALID_MODIFICATION_ERR 16 kQuotaErrorInvalidModification =
18 kQuotaErrorInvalidAccess = 15, // INVALID_ACCESS_ERR 17 WebKit::WebStorageQuotaErrorInvalidModification,
19 kQuotaErrorAbort = 20, // ABORT_ERR 18 kQuotaErrorInvalidAccess = WebKit::WebStorageQuotaErrorInvalidAccess,
19 kQuotaErrorAbort = WebKit::WebStorageQuotaErrorAbort,
20 kQuotaStatusUnknown = -1, 20 kQuotaStatusUnknown = -1,
21 }; 21 };
22 22
23 WEBKIT_STORAGE_EXPORT const char* QuotaStatusCodeToString( 23 WEBKIT_STORAGE_EXPORT const char* QuotaStatusCodeToString(
24 QuotaStatusCode status); 24 QuotaStatusCode status);
25 25
26 } // namespace quota 26 } // namespace quota
27 27
28 #endif // WEBKIT_QUOTA_QUOTA_STATUS_CODE_H_ 28 #endif // WEBKIT_QUOTA_QUOTA_STATUS_CODE_H_
OLDNEW
« 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