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 5include protocol PBackground; 6 7include ClientIPCTypes; 8include DOMTypes; 9 10namespace mozilla { 11namespace dom { 12 13[ChildImpl=virtual, ParentImpl=virtual] 14protocol PServiceWorker 15{ 16 manager PBackground; 17 18parent: 19 async Teardown(); 20 21 async PostMessage(ClonedOrErrorMessageData aClonedData, ClientInfoAndState aSource); 22 23child: 24 async __delete__(); 25}; 26 27} // namespace dom 28} // namespace mozilla 29