Bug 1769952 - Fix running raptor on a Win10-64 VM r=sparky
[gecko.git] / dom / filehandle / PBackgroundFileRequest.ipdl
bloba013112b0c00a9e232aded395251cc04593d2e98
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";
11 namespace mozilla {
12 namespace dom {
14 struct FileRequestMetadata
16   uint64_t? size;
17   int64_t? lastModified;
20 struct FileRequestGetMetadataResponse
22   FileRequestMetadata metadata;
25 struct FileRequestReadResponse
27   nsCString data;
30 struct FileRequestWriteResponse
34 struct FileRequestTruncateResponse
38 struct FileRequestFlushResponse
42 union FileRequestResponse
44   nsresult;
45   FileRequestGetMetadataResponse;
46   FileRequestReadResponse;
47   FileRequestWriteResponse;
48   FileRequestTruncateResponse;
49   FileRequestFlushResponse;
52 [ManualDealloc, ChildImpl="indexedDB::BackgroundFileRequestChild", ParentImpl=virtual]
53 protocol PBackgroundFileRequest
55   manager PBackgroundFileHandle;
57 child:
58   async __delete__(FileRequestResponse response);
60   async Progress(uint64_t progress,
61                  uint64_t progressMax);
64 } // namespace dom
65 } // namespace mozilla