PAltDataOutputStream.ipdl (1268B)
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set sw=2 ts=8 et tw=80 ft=cpp : */ 3 4 /* This Source Code Form is subject to the terms of the Mozilla Public 5 * License, v. 2.0. If a copy of the MPL was not distributed with this 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 7 8 include protocol PNecko; 9 10 namespace mozilla { 11 namespace net { 12 13 [ManualDealloc] 14 protocol PAltDataOutputStream 15 { 16 manager PNecko; 17 18 parent: 19 // Sends data from the child to the parent that will be written to the cache. 20 async WriteData(nsCString data); 21 // Signals that writing to the output stream is done. 22 async Close(nsresult status); 23 24 async __delete__(); 25 26 child: 27 // The parent calls this method to signal that an error has ocurred. 28 // This may mean that opening the output stream has failed or that writing to 29 // the stream has returned an error. 30 async Error(nsresult err); 31 32 both: 33 // After sending this message, the parent will respond by sending DeleteSelf 34 // back to the child, after which it is guaranteed to not send any more IPC 35 // messages. 36 // When receiving this message, the child will send __delete__ tearing down 37 // the IPC channel. 38 async DeleteSelf(); 39 }; 40 41 } // namespace net 42 } // namespace mozilla