Roll leveldb 3f7758:803d69 (v1.17 -> v1.18)
[chromium-blink-merge.git] / storage / common / quota / quota_status_code.h
blob00da2350daf30c821c0dc1e02db31849a39ae55f
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef STORAGE_COMMON_QUOTA_QUOTA_STATUS_CODE_H_
6 #define STORAGE_COMMON_QUOTA_QUOTA_STATUS_CODE_H_
8 #include "storage/common/storage_common_export.h"
9 #include "third_party/WebKit/public/platform/WebStorageQuotaError.h"
11 namespace storage {
13 enum QuotaStatusCode {
14 kQuotaStatusOk = 0,
15 kQuotaErrorNotSupported = blink::WebStorageQuotaErrorNotSupported,
16 kQuotaErrorInvalidModification =
17 blink::WebStorageQuotaErrorInvalidModification,
18 kQuotaErrorInvalidAccess = blink::WebStorageQuotaErrorInvalidAccess,
19 kQuotaErrorAbort = blink::WebStorageQuotaErrorAbort,
20 kQuotaStatusUnknown = -1,
23 STORAGE_COMMON_EXPORT const char* QuotaStatusCodeToString(
24 QuotaStatusCode status);
26 } // namespace storage
28 #endif // STORAGE_COMMON_QUOTA_QUOTA_STATUS_CODE_H_