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