Bug 1842773 - Part 5: Add ArrayBuffer.prototype.{maxByteLength,resizable} getters...
[gecko.git] / dom / media / gmp / PGMPStorage.ipdl
blob6efe7fbb23e41c74ea51a1c60d5d2bf18a74ca5e
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 include protocol PGMP;
7 include GMPTypes;
9 include "GMPStorageChild.h";
11 using GMPErr from "gmp-errors.h";
13 namespace mozilla {
14 namespace gmp {
16 [ManualDealloc, ChildImpl="GMPStorageChild", ParentImpl=virtual]
17 async protocol PGMPStorage
19   manager PGMP;
21 child:
22   async OpenComplete(nsCString aRecordName, GMPErr aStatus);
23   async ReadComplete(nsCString aRecordName, GMPErr aStatus, uint8_t[] aBytes);
24   async WriteComplete(nsCString aRecordName, GMPErr aStatus);
25   async Shutdown();
27 parent:
28   async Open(nsCString aRecordName);
29   async Read(nsCString aRecordName);
30   async Write(nsCString aRecordName, uint8_t[] aBytes);
31   async Close(nsCString aRecordName);
32   async __delete__();
36 } // namespace gmp
37 } // namespace mozilla