PBackgroundMutableFile.ipdl 789 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  3. * You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. include protocol PBackgroundFileHandle;
  5. include protocol PBackgroundIDBDatabase;
  6. include "mozilla/dom/filehandle/SerializationHelpers.h";
  7. using mozilla::dom::FileMode
  8. from "mozilla/dom/FileModeBinding.h";
  9. namespace mozilla {
  10. namespace dom {
  11. sync protocol PBackgroundMutableFile
  12. {
  13. manager PBackgroundIDBDatabase;
  14. manages PBackgroundFileHandle;
  15. parent:
  16. async DeleteMe();
  17. async PBackgroundFileHandle(FileMode mode);
  18. // Use only for testing!
  19. sync GetFileId()
  20. returns (int64_t fileId);
  21. child:
  22. async __delete__();
  23. };
  24. } // namespace dom
  25. } // namespace mozilla