dom/filesystem/PFileSystemRequest.ipdl
author Masayuki Nakano <masayuki@d-toybox.com>
Sat, 12 Sep 2015 01:19:28 +0900
changeset 262062 062647162efbdb0086028f6121b05608923b7a5e
parent 251268 8e404e27bd8a9b600c2525999124d3bcd3bbf303
child 282269 b04361fcbafcb20cfab95999b6a7b37633dd3bc7
permissions -rw-r--r--
Bug 895274 part.220 Rename NS_PRINT_EVENT_START to ePrintEventFirst r=smaug

/* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

include protocol PBlob;
include protocol PContent;

namespace mozilla {
namespace dom {

struct FileSystemFileResponse
{
  PBlob blob;
};

struct FileSystemDirectoryResponse
{
  nsString realPath;
};

struct FileSystemDirectoryListingResponse
{
  PBlob[] blobs;
};

struct FileSystemErrorResponse
{
  nsresult error;
};

struct FileSystemBooleanResponse
{
  bool success;
};

union FileSystemResponseValue
{
  FileSystemBooleanResponse;
  FileSystemDirectoryResponse;
  FileSystemDirectoryListingResponse;
  FileSystemFileResponse;
  FileSystemErrorResponse;
};

sync protocol PFileSystemRequest
{
  manager PContent;

child:
  __delete__(FileSystemResponseValue response);
};

} // namespace dom
} // namespace mozilla