nsPIDNSService.idl 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* vim:set ts=2 sw=2 sts=2 et cindent: */
  3. /* This Source Code Form is subject to the terms of the Mozilla Public
  4. * License, v. 2.0. If a copy of the MPL was not distributed with this
  5. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  6. #include "nsIDNSService.idl"
  7. /**
  8. * This is a private interface used by the internals of the networking library.
  9. * It will never be frozen. Do not use it in external code.
  10. */
  11. [scriptable, uuid(24e598fd-7b1a-436c-9154-14d8b38df8a5)]
  12. interface nsPIDNSService : nsIDNSService
  13. {
  14. /**
  15. * called to initialize the DNS service.
  16. */
  17. void init();
  18. /**
  19. * called to shutdown the DNS service. any pending asynchronous
  20. * requests will be canceled, and the local cache of DNS records
  21. * will be cleared. NOTE: the operating system may still have
  22. * its own cache of DNS records, which would be unaffected by
  23. * this method.
  24. */
  25. void shutdown();
  26. /**
  27. * Whether or not DNS prefetching (aka RESOLVE_SPECULATE) is enabled
  28. */
  29. attribute boolean prefetchEnabled;
  30. };