Wed, 31 Dec 2014 06:55:46 +0100
Added tag TORBROWSER_REPLICA for changeset 6474c204b198
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #include "nsISupports.idl" |
michael@0 | 6 | |
michael@0 | 7 | interface nsICancelable; |
michael@0 | 8 | interface nsIDNSRecord; |
michael@0 | 9 | |
michael@0 | 10 | /** |
michael@0 | 11 | * nsIDNSListener |
michael@0 | 12 | */ |
michael@0 | 13 | [scriptable, uuid(41466a9f-f027-487d-a96c-af39e629b8d2)] |
michael@0 | 14 | interface nsIDNSListener : nsISupports |
michael@0 | 15 | { |
michael@0 | 16 | /** |
michael@0 | 17 | * called when an asynchronous host lookup completes. |
michael@0 | 18 | * |
michael@0 | 19 | * @param aRequest |
michael@0 | 20 | * the value returned from asyncResolve. |
michael@0 | 21 | * @param aRecord |
michael@0 | 22 | * the DNS record corresponding to the hostname that was resolved. |
michael@0 | 23 | * this parameter is null if there was an error. |
michael@0 | 24 | * @param aStatus |
michael@0 | 25 | * if the lookup failed, this parameter gives the reason. |
michael@0 | 26 | */ |
michael@0 | 27 | void onLookupComplete(in nsICancelable aRequest, |
michael@0 | 28 | in nsIDNSRecord aRecord, |
michael@0 | 29 | in nsresult aStatus); |
michael@0 | 30 | }; |