// third_party/blink/public/mojom/quota/quota_types.mojom-webui.ts is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import { mojo } from '//resources/mojo/mojo/public/js/bindings.js';
export const BucketDurabilitySpec = { $: mojo.internal.Enum() };
export var BucketDurability;
(function (BucketDurability) {
    BucketDurability[BucketDurability["MIN_VALUE"] = 0] = "MIN_VALUE";
    BucketDurability[BucketDurability["MAX_VALUE"] = 1] = "MAX_VALUE";
    BucketDurability[BucketDurability["kRelaxed"] = 0] = "kRelaxed";
    BucketDurability[BucketDurability["kStrict"] = 1] = "kStrict";
})(BucketDurability || (BucketDurability = {}));
export const QuotaStatusCodeSpec = { $: mojo.internal.Enum() };
export var QuotaStatusCode;
(function (QuotaStatusCode) {
    QuotaStatusCode[QuotaStatusCode["MIN_VALUE"] = -1] = "MIN_VALUE";
    QuotaStatusCode[QuotaStatusCode["MAX_VALUE"] = 20] = "MAX_VALUE";
    QuotaStatusCode[QuotaStatusCode["kOk"] = 0] = "kOk";
    QuotaStatusCode[QuotaStatusCode["kErrorNotSupported"] = 9] = "kErrorNotSupported";
    QuotaStatusCode[QuotaStatusCode["kErrorInvalidModification"] = 13] = "kErrorInvalidModification";
    QuotaStatusCode[QuotaStatusCode["kErrorInvalidAccess"] = 15] = "kErrorInvalidAccess";
    QuotaStatusCode[QuotaStatusCode["kErrorAbort"] = 20] = "kErrorAbort";
    QuotaStatusCode[QuotaStatusCode["kUnknown"] = -1] = "kUnknown";
})(QuotaStatusCode || (QuotaStatusCode = {}));
export const UsageBreakdownSpec = { $: {} };
mojo.internal.Struct(UsageBreakdownSpec.$, 'UsageBreakdown', [
    mojo.internal.StructField('fileSystem', 0, 0, mojo.internal.Int64, BigInt('0'), false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('webSql', 8, 0, mojo.internal.Int64, BigInt('0'), false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('indexedDatabase', 16, 0, mojo.internal.Int64, BigInt('0'), false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('serviceWorkerCache', 24, 0, mojo.internal.Int64, BigInt('0'), false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('serviceWorker', 32, 0, mojo.internal.Int64, BigInt('0'), false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('backgroundFetch', 40, 0, mojo.internal.Int64, BigInt('0'), false /* nullable */, 0, undefined, undefined),
], [[0, 56],]);
