PServiceWorkerContainer.ipdl (1316B)
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 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 include protocol PBackground; 6 7 include ClientIPCTypes; 8 include IPCServiceWorkerRegistrationDescriptor; 9 include "mozilla/dom/WorkerIPCUtils.h"; 10 11 using mozilla::dom::WorkerType from "mozilla/dom/WorkerBinding.h"; 12 13 namespace mozilla { 14 namespace dom { 15 16 [ChildImpl=virtual, ParentImpl=virtual] 17 protocol PServiceWorkerContainer 18 { 19 manager PBackground; 20 21 parent: 22 async Register(IPCClientInfo aClientInfo, nsCString aScopeURL, WorkerType aType, 23 nsCString aScriptURL, ServiceWorkerUpdateViaCache aUpdateViaCache) 24 returns (IPCServiceWorkerRegistrationDescriptorOrCopyableErrorResult aResult); 25 26 async GetRegistration(IPCClientInfo aClientInfo, nsCString aURL) 27 returns (IPCServiceWorkerRegistrationDescriptorOrCopyableErrorResult aResult); 28 29 async GetRegistrations(IPCClientInfo aClientInfo) 30 returns (IPCServiceWorkerRegistrationDescriptorListOrCopyableErrorResult aResult); 31 32 async GetReady(IPCClientInfo aClientInfo) 33 returns (IPCServiceWorkerRegistrationDescriptorOrCopyableErrorResult aResult); 34 35 async __delete__(); 36 }; 37 38 } // namespace dom 39 } // namespace mozilla