PBackgroundSDBRequest.ipdl (889B)
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 5 include protocol PBackgroundSDBConnection; 6 7 namespace mozilla { 8 namespace dom { 9 10 struct SDBRequestOpenResponse 11 { 12 }; 13 14 struct SDBRequestSeekResponse 15 { 16 }; 17 18 struct SDBRequestReadResponse 19 { 20 nsCString data; 21 }; 22 23 struct SDBRequestWriteResponse 24 { 25 }; 26 27 struct SDBRequestCloseResponse 28 { 29 }; 30 31 union SDBRequestResponse 32 { 33 nsresult; 34 SDBRequestOpenResponse; 35 SDBRequestSeekResponse; 36 SDBRequestReadResponse; 37 SDBRequestWriteResponse; 38 SDBRequestCloseResponse; 39 }; 40 41 [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual] 42 protocol PBackgroundSDBRequest 43 { 44 manager PBackgroundSDBConnection; 45 46 child: 47 async __delete__(SDBRequestResponse response); 48 }; 49 50 } // namespace dom 51 } // namespace mozilla