PGMPStorage.ipdl (1016B)
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/. */ 5 6 include protocol PGMP; 7 include GMPTypes; 8 9 include "GMPStorageChild.h"; 10 11 using GMPErr from "gmp-errors.h"; 12 13 namespace mozilla { 14 namespace gmp { 15 16 [ManualDealloc, ChildImpl="GMPStorageChild", ParentImpl=virtual] 17 async protocol PGMPStorage 18 { 19 manager PGMP; 20 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(); 26 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__(); 33 34 }; 35 36 } // namespace gmp 37 } // namespace mozilla