PBackgroundIndexedDBUtils.ipdl (1093B)
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 PBackground; 6 7 include "mozilla/dom/quota/SerializationHelpers.h"; 8 include "mozilla/dom/indexedDB/ActorsChild.h"; 9 10 using mozilla::dom::quota::PersistenceType 11 from "mozilla/dom/quota/PersistenceType.h"; 12 13 namespace mozilla { 14 namespace dom { 15 namespace indexedDB { 16 17 [ManualDealloc, ChildImpl="indexedDB::BackgroundUtilsChild", ParentImpl=virtual] 18 sync protocol PBackgroundIndexedDBUtils 19 { 20 manager PBackground; 21 22 parent: 23 async DeleteMe(); 24 25 // Use only for testing! 26 sync GetFileReferences(PersistenceType persistenceType, 27 nsCString origin, 28 nsString databaseName, 29 int64_t fileId) 30 returns (int32_t refCnt, int32_t dBRefCnt, bool result); 31 32 async DoMaintenance() 33 returns (nsresult rv); 34 35 child: 36 async __delete__(); 37 }; 38 39 } // namespace indexedDB 40 } // namespace dom 41 } // namespace mozilla