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 "nsISupports.idl" michael@0: michael@0: interface nsICancelable; michael@0: interface nsIDNSRecord; michael@0: michael@0: /** michael@0: * nsIDNSListener michael@0: */ michael@0: [scriptable, uuid(41466a9f-f027-487d-a96c-af39e629b8d2)] michael@0: interface nsIDNSListener : nsISupports michael@0: { michael@0: /** michael@0: * called when an asynchronous host lookup completes. michael@0: * michael@0: * @param aRequest michael@0: * the value returned from asyncResolve. michael@0: * @param aRecord michael@0: * the DNS record corresponding to the hostname that was resolved. michael@0: * this parameter is null if there was an error. michael@0: * @param aStatus michael@0: * if the lookup failed, this parameter gives the reason. michael@0: */ michael@0: void onLookupComplete(in nsICancelable aRequest, michael@0: in nsIDNSRecord aRecord, michael@0: in nsresult aStatus); michael@0: };