1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 include protocol PBackgroundFileHandle;
7 include "mozilla/dom/indexedDB/ActorsChild.h";
9 using struct mozilla::void_t from "mozilla/ipc/IPCCore.h";
14 struct FileRequestMetadata
17 int64_t? lastModified;
20 struct FileRequestGetMetadataResponse
22 FileRequestMetadata metadata;
25 struct FileRequestReadResponse
30 struct FileRequestWriteResponse
34 struct FileRequestTruncateResponse
38 struct FileRequestFlushResponse
42 union FileRequestResponse
45 FileRequestGetMetadataResponse;
46 FileRequestReadResponse;
47 FileRequestWriteResponse;
48 FileRequestTruncateResponse;
49 FileRequestFlushResponse;
52 [ManualDealloc, ChildImpl="indexedDB::BackgroundFileRequestChild", ParentImpl=virtual]
53 protocol PBackgroundFileRequest
55 manager PBackgroundFileHandle;
58 async __delete__(FileRequestResponse response);
60 async Progress(uint64_t progress,
61 uint64_t progressMax);
65 } // namespace mozilla