PBackgroundIDBFactoryRequest.ipdl (1024B)
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 PBackgroundIDBFactory; 6 include protocol PBackgroundIDBDatabase; 7 8 include PBackgroundSharedTypes; 9 10 include "mozilla/dom/indexedDB/ActorsChild.h"; 11 12 namespace mozilla { 13 namespace dom { 14 namespace indexedDB { 15 16 struct OpenDatabaseRequestResponse 17 { 18 PBackgroundIDBDatabase database; 19 }; 20 21 struct DeleteDatabaseRequestResponse 22 { 23 uint64_t previousVersion; 24 }; 25 26 union FactoryRequestResponse 27 { 28 nsresult; 29 OpenDatabaseRequestResponse; 30 DeleteDatabaseRequestResponse; 31 }; 32 33 [ManualDealloc, ChildImpl="indexedDB::BackgroundFactoryRequestChild", ParentImpl=virtual] 34 protocol PBackgroundIDBFactoryRequest 35 { 36 manager PBackgroundIDBFactory; 37 38 child: 39 async __delete__(FactoryRequestResponse response); 40 41 async Blocked(uint64_t currentVersion); 42 }; 43 44 } // namespace indexedDB 45 } // namespace dom 46 } // namespace mozilla