| // Copyright 2017 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. |
| |
| module blink.mojom; |
| |
| enum StorageType { |
| kTemporary, |
| kPersistent, |
| kSyncable, |
| kQuotaNotManaged, |
| kUnknown, |
| }; |
| |
| // These values need to match core/dom/exception_code.h. |
| enum QuotaStatusCode { |
| kOk = 0, |
| kErrorNotSupported = 9, // NOT_SUPPORTED_ERR |
| kErrorInvalidModification = 13, // INVALID_MODIFICATION_ERR |
| kErrorInvalidAccess = 15, // INVALID_ACCESS_ERR |
| kErrorAbort = 20, // ABORT_ERR |
| kUnknown = -1, |
| }; |
| |
| struct UsageBreakdown { |
| int64 fileSystem = 0; |
| int64 webSql = 0; |
| int64 appcache = 0; |
| int64 indexedDatabase = 0; |
| int64 serviceWorkerCache = 0; |
| int64 serviceWorker = 0; |
| int64 backgroundFetch = 0; |
| }; |