PDNSRequest.ipdl 932 B

123456789101112131415161718192021222324252627282930313233343536
  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. include PDNSRequestParams;
  7. include "mozilla/net/NeckoMessageUtils.h";
  8. namespace mozilla {
  9. namespace net {
  10. async protocol PDNSRequest
  11. {
  12. manager PNecko;
  13. parent:
  14. // constructor in PNecko takes AsyncResolve args that initialize request
  15. // Pass args here rather than storing them in the parent; they are only
  16. // needed if the request is to be canceled.
  17. async CancelDNSRequest(nsCString hostName, uint32_t flags,
  18. nsCString networkInterface, nsresult reason);
  19. async __delete__();
  20. child:
  21. async LookupCompleted(DNSRequestResponse reply);
  22. };
  23. } //namespace net
  24. } //namespace mozilla