1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/netwerk/dns/nsPIDNSService.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,39 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* vim:set ts=2 sw=2 sts=2 et cindent: */ 1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#include "nsIDNSService.idl" 1.11 + 1.12 +/** 1.13 + * This is a private interface used by the internals of the networking library. 1.14 + * It will never be frozen. Do not use it in external code. 1.15 + */ 1.16 +[scriptable, uuid(6b16fb1f-5709-4c94-a89f-a22be873c54d)] 1.17 +interface nsPIDNSService : nsIDNSService 1.18 +{ 1.19 + /** 1.20 + * called to initialize the DNS service. 1.21 + */ 1.22 + void init(); 1.23 + 1.24 + /** 1.25 + * called to shutdown the DNS service. any pending asynchronous 1.26 + * requests will be canceled, and the local cache of DNS records 1.27 + * will be cleared. NOTE: the operating system may still have 1.28 + * its own cache of DNS records, which would be unaffected by 1.29 + * this method. 1.30 + */ 1.31 + void shutdown(); 1.32 + 1.33 + /** 1.34 + * Whether or not DNS prefetching (aka RESOLVE_SPECULATE) is enabled 1.35 + */ 1.36 + attribute boolean prefetchEnabled; 1.37 + 1.38 + /** 1.39 + * @return whether the DNS service is offline. 1.40 + */ 1.41 + attribute boolean offline; 1.42 +};