PAltDataOutputStream.ipdl 892 B

1234567891011121314151617181920212223242526272829303132
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. include protocol PNecko;
  6. namespace mozilla {
  7. namespace net {
  8. protocol PAltDataOutputStream
  9. {
  10. manager PNecko;
  11. parent:
  12. // Sends data from the child to the parent that will be written to the cache.
  13. async WriteData(nsCString data);
  14. // Signals that writing to the output stream is done.
  15. async Close();
  16. async __delete__();
  17. child:
  18. // The parent calls this method to signal that an error has ocurred.
  19. // This may mean that opening the output stream has failed or that writing to
  20. // the stream has returned an error.
  21. async Error(nsresult err);
  22. };
  23. } // namespace net
  24. } // namespace mozilla