dom/devicestorage/PDeviceStorageRequest.ipdl
author Till Schneidereit <tschneidereit@gmail.com>
Thu, 06 Sep 2012 17:43:22 +0200
changeset 108068 2f83e74b38ff702f57ce22df899f531c9b252ec0
parent 107564 74901ae695f8ad6aef84cea72318ae91465a93fb
child 111185 7b8dca41f2d6df946bf12793db26aacefbf1f9a3
permissions -rw-r--r--
Bug 786743 - Disable JS minification for debug builds.

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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 {
namespace devicestorage {


struct ErrorResponse
{
  nsString error;
};

struct SuccessResponse
{
};

struct BlobResponse
{
  PBlob blob;
};

struct DeviceStorageFileValue
{
  nsString type;
  nsString name;
  nsString fullpath;
};

struct EnumerationResponse
{
  DeviceStorageFileValue[] paths;
};

struct StatStorageResponse
{
  int64_t totalBytes;
  int64_t freeBytes;
  nsString mountState;
};

union DeviceStorageResponseValue
{
  ErrorResponse;
  SuccessResponse;
  BlobResponse;
  EnumerationResponse;
  StatStorageResponse;
};

sync protocol PDeviceStorageRequest {
    manager PContent;
child:
    __delete__(DeviceStorageResponseValue response);
};

} // namespace devicestorage
} // namespace dom
} // namespace mozilla