michael@0: /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */ michael@0: /* vim: set ts=2 et sw=2 tw=80: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: include protocol PBlob; michael@0: include protocol PContent; michael@0: michael@0: namespace mozilla { michael@0: namespace dom { michael@0: michael@0: struct FileSystemFileResponse michael@0: { michael@0: PBlob blob; michael@0: }; michael@0: michael@0: struct FileSystemDirectoryResponse michael@0: { michael@0: nsString realPath; michael@0: }; michael@0: michael@0: struct FileSystemErrorResponse michael@0: { michael@0: nsresult error; michael@0: }; michael@0: michael@0: struct FileSystemBooleanResponse michael@0: { michael@0: bool success; michael@0: }; michael@0: michael@0: union FileSystemResponseValue michael@0: { michael@0: FileSystemBooleanResponse; michael@0: FileSystemDirectoryResponse; michael@0: FileSystemFileResponse; michael@0: FileSystemErrorResponse; michael@0: }; michael@0: michael@0: sync protocol PFileSystemRequest michael@0: { michael@0: manager PContent; michael@0: michael@0: child: michael@0: __delete__(FileSystemResponseValue response); michael@0: }; michael@0: michael@0: } // namespace dom michael@0: } // namespace mozilla