1 /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
7 include protocol PBackground;
11 include "mozilla/dom/FileSystemTaskBase.h";
16 struct FileSystemFileResponse
21 struct FileSystemDirectoryResponse
26 struct FileSystemDirectoryListingResponseFile
31 struct FileSystemDirectoryListingResponseDirectory
33 // This is the full real path for the directory that we are sending via IPC.
34 nsString directoryRealPath;
37 union FileSystemDirectoryListingResponseData
39 FileSystemDirectoryListingResponseFile;
40 FileSystemDirectoryListingResponseDirectory;
43 struct FileSystemDirectoryListingResponse
45 FileSystemDirectoryListingResponseData[] data;
48 struct FileSystemFilesResponse
50 FileSystemFileResponse[] data;
53 struct FileSystemErrorResponse
58 union FileSystemResponseValue
60 FileSystemDirectoryResponse;
61 FileSystemDirectoryListingResponse;
62 FileSystemFileResponse;
63 FileSystemFilesResponse;
64 FileSystemErrorResponse;
67 [ChildImpl="FileSystemTaskChildBase"]
68 protocol PFileSystemRequest
73 async __delete__(FileSystemResponseValue response);
77 } // namespace mozilla