michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim:set ts=2 sw=2 sts=2 et cindent: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsIDNSService.idl" michael@0: michael@0: /** michael@0: * This is a private interface used by the internals of the networking library. michael@0: * It will never be frozen. Do not use it in external code. michael@0: */ michael@0: [scriptable, uuid(6b16fb1f-5709-4c94-a89f-a22be873c54d)] michael@0: interface nsPIDNSService : nsIDNSService michael@0: { michael@0: /** michael@0: * called to initialize the DNS service. michael@0: */ michael@0: void init(); michael@0: michael@0: /** michael@0: * called to shutdown the DNS service. any pending asynchronous michael@0: * requests will be canceled, and the local cache of DNS records michael@0: * will be cleared. NOTE: the operating system may still have michael@0: * its own cache of DNS records, which would be unaffected by michael@0: * this method. michael@0: */ michael@0: void shutdown(); michael@0: michael@0: /** michael@0: * Whether or not DNS prefetching (aka RESOLVE_SPECULATE) is enabled michael@0: */ michael@0: attribute boolean prefetchEnabled; michael@0: michael@0: /** michael@0: * @return whether the DNS service is offline. michael@0: */ michael@0: attribute boolean offline; michael@0: };