// components/services/storage/privileged/mojom/indexed_db_internals_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';
import { BucketClientInfoSpec as storage_mojom_BucketClientInfoSpec } from './bucket_client_info.mojom-webui.js';
import { BucketLocatorSpec as storage_mojom_BucketLocatorSpec } from './bucket_locator.mojom-webui.js';
import { SchemefulSiteSpec as network_mojom_SchemefulSiteSpec } from './schemeful_site.mojom-webui.js';
import { FilePathSpec as mojoBase_mojom_FilePathSpec } from '//resources/mojo/mojo/public/mojom/base/file_path.mojom-webui.js';
import { String16Spec as mojoBase_mojom_String16Spec } from '//resources/mojo/mojo/public/mojom/base/string16.mojom-webui.js';
import { TimeSpec as mojoBase_mojom_TimeSpec } from '//resources/mojo/mojo/public/mojom/base/time.mojom-webui.js';
import { OriginSpec as url_mojom_OriginSpec } from '//resources/mojo/url/mojom/origin.mojom-webui.js';
export const IdbTransactionModeSpec = { $: mojo.internal.Enum() };
export var IdbTransactionMode;
(function (IdbTransactionMode) {
    IdbTransactionMode[IdbTransactionMode["MIN_VALUE"] = 0] = "MIN_VALUE";
    IdbTransactionMode[IdbTransactionMode["MAX_VALUE"] = 2] = "MAX_VALUE";
    IdbTransactionMode[IdbTransactionMode["kReadOnly"] = 0] = "kReadOnly";
    IdbTransactionMode[IdbTransactionMode["kReadWrite"] = 1] = "kReadWrite";
    IdbTransactionMode[IdbTransactionMode["kVersionChange"] = 2] = "kVersionChange";
})(IdbTransactionMode || (IdbTransactionMode = {}));
export const IdbTransactionStateSpec = { $: mojo.internal.Enum() };
export var IdbTransactionState;
(function (IdbTransactionState) {
    IdbTransactionState[IdbTransactionState["MIN_VALUE"] = 0] = "MIN_VALUE";
    IdbTransactionState[IdbTransactionState["MAX_VALUE"] = 4] = "MAX_VALUE";
    IdbTransactionState[IdbTransactionState["kBlocked"] = 0] = "kBlocked";
    IdbTransactionState[IdbTransactionState["kRunning"] = 1] = "kRunning";
    IdbTransactionState[IdbTransactionState["kStarted"] = 2] = "kStarted";
    IdbTransactionState[IdbTransactionState["kCommitting"] = 3] = "kCommitting";
    IdbTransactionState[IdbTransactionState["kFinished"] = 4] = "kFinished";
})(IdbTransactionState || (IdbTransactionState = {}));
export const IdbOriginMetadataSpec = { $: {} };
export const IdbStorageKeyMetadataSpec = { $: {} };
export const IdbBucketMetadataSpec = { $: {} };
export const IdbDatabaseMetadataSpec = { $: {} };
export const IdbTransactionMetadataSpec = { $: {} };
export const IdbTransactionMetadataStateHistorySpec = { $: {} };
mojo.internal.Struct(IdbOriginMetadataSpec.$, 'IdbOriginMetadata', [
    mojo.internal.StructField('origin', 0, 0, url_mojom_OriginSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('storageKeys', 8, 0, mojo.internal.Array(IdbStorageKeyMetadataSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
mojo.internal.Struct(IdbStorageKeyMetadataSpec.$, 'IdbStorageKeyMetadata', [
    mojo.internal.StructField('topLevelSite', 0, 0, network_mojom_SchemefulSiteSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('serializedStorageKey', 8, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('buckets', 16, 0, mojo.internal.Array(IdbBucketMetadataSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
], [[0, 32],]);
mojo.internal.Struct(IdbBucketMetadataSpec.$, 'IdbBucketMetadata', [
    mojo.internal.StructField('bucketLocator', 0, 0, storage_mojom_BucketLocatorSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('name', 8, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('size', 16, 0, mojo.internal.Uint64, BigInt(0), false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('lastModified', 24, 0, mojoBase_mojom_TimeSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('paths', 32, 0, mojo.internal.Array(mojoBase_mojom_FilePathSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('connectionCount', 40, 0, mojo.internal.Uint64, BigInt(0), false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('databases', 48, 0, mojo.internal.Array(IdbDatabaseMetadataSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('clients', 56, 0, mojo.internal.Array(storage_mojom_BucketClientInfoSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('deltaRecordingStartMs', 64, 0, mojo.internal.Uint64, BigInt(0), false /* nullable */, 0, undefined, undefined),
], [[0, 80],]);
mojo.internal.Struct(IdbDatabaseMetadataSpec.$, 'IdbDatabaseMetadata', [
    mojo.internal.StructField('name', 0, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('connectionCount', 8, 0, mojo.internal.Uint64, BigInt(0), false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('activeOpenDelete', 16, 0, mojo.internal.Uint64, BigInt(0), false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('pendingOpenDelete', 24, 0, mojo.internal.Uint64, BigInt(0), false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('transactions', 32, 0, mojo.internal.Array(IdbTransactionMetadataSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
], [[0, 48],]);
mojo.internal.Struct(IdbTransactionMetadataSpec.$, 'IdbTransactionMetadata', [
    mojo.internal.StructField('mode', 0, 0, IdbTransactionModeSpec.$, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('state', 4, 0, IdbTransactionStateSpec.$, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('tid', 8, 0, mojo.internal.Int64, BigInt(0), false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('connectionId', 16, 0, mojo.internal.Int32, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('clientToken', 24, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('age', 32, 0, mojo.internal.Double, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('runtime', 40, 0, mojo.internal.Double, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('tasksScheduled', 48, 0, mojo.internal.Double, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('tasksCompleted', 56, 0, mojo.internal.Double, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('scope', 64, 0, mojo.internal.Array(mojoBase_mojom_String16Spec.$, false), null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('stateHistory', 72, 0, mojo.internal.Array(IdbTransactionMetadataStateHistorySpec.$, false), null, false /* nullable */, 0, undefined, undefined),
], [[0, 88],]);
mojo.internal.Struct(IdbTransactionMetadataStateHistorySpec.$, 'IdbTransactionMetadataStateHistory', [
    mojo.internal.StructField('state', 0, 0, IdbTransactionStateSpec.$, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('duration', 8, 0, mojo.internal.Double, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
