netwerk/dns/nsPIDNSService.idl

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

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

mercurial