dom/filehandle/PBackgroundMutableFile.ipdl
author Jared Wein <jwein@mozilla.com>
Mon, 24 Dec 2018 16:19:20 +0000
changeset 511855 28805dd1b97ab5b421d9e886fd5d96460d5d26ab
parent 320508 b04361fcbafcb20cfab95999b6a7b37633dd3bc7
permissions -rw-r--r--
Bug 1507595 - Convert about:support to Fluent. r=Gijs,flod Initial patch by Collin Wing (masterkrombi@gmail.com). Differential Revision: https://phabricator.services.mozilla.com/D14905

/* 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 PBackgroundFileHandle;
include protocol PBackgroundIDBDatabase;

include "mozilla/dom/filehandle/SerializationHelpers.h";

using mozilla::dom::FileMode
  from "mozilla/dom/FileModeBinding.h";

namespace mozilla {
namespace dom {

sync protocol PBackgroundMutableFile
{
  manager PBackgroundIDBDatabase;

  manages PBackgroundFileHandle;

parent:
  async DeleteMe();

  async PBackgroundFileHandle(FileMode mode);

  // Use only for testing!
  sync GetFileId()
    returns (int64_t fileId);

child:
  async __delete__();
};

} // namespace dom
} // namespace mozilla