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/. */
9 include "GMPStorageChild.h";
11 using GMPErr from "gmp-errors.h";
16 [ManualDealloc, ChildImpl="GMPStorageChild", ParentImpl=virtual]
17 async protocol PGMPStorage
22 async OpenComplete(nsCString aRecordName, GMPErr aStatus);
23 async ReadComplete(nsCString aRecordName, GMPErr aStatus, uint8_t[] aBytes);
24 async WriteComplete(nsCString aRecordName, GMPErr aStatus);
28 async Open(nsCString aRecordName);
29 async Read(nsCString aRecordName);
30 async Write(nsCString aRecordName, uint8_t[] aBytes);
31 async Close(nsCString aRecordName);
37 } // namespace mozilla