1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/netwerk/dns/nsIDNSListener.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "nsISupports.idl" 1.9 + 1.10 +interface nsICancelable; 1.11 +interface nsIDNSRecord; 1.12 + 1.13 +/** 1.14 + * nsIDNSListener 1.15 + */ 1.16 +[scriptable, uuid(41466a9f-f027-487d-a96c-af39e629b8d2)] 1.17 +interface nsIDNSListener : nsISupports 1.18 +{ 1.19 + /** 1.20 + * called when an asynchronous host lookup completes. 1.21 + * 1.22 + * @param aRequest 1.23 + * the value returned from asyncResolve. 1.24 + * @param aRecord 1.25 + * the DNS record corresponding to the hostname that was resolved. 1.26 + * this parameter is null if there was an error. 1.27 + * @param aStatus 1.28 + * if the lookup failed, this parameter gives the reason. 1.29 + */ 1.30 + void onLookupComplete(in nsICancelable aRequest, 1.31 + in nsIDNSRecord aRecord, 1.32 + in nsresult aStatus); 1.33 +};