netwerk/dns/nsIDNSListener.idl

Wed, 31 Dec 2014 06:55:46 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:46 +0100
changeset 1
ca08bd8f51b2
permissions
-rw-r--r--

Added tag TORBROWSER_REPLICA for changeset 6474c204b198

     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/. */
     5 #include "nsISupports.idl"
     7 interface nsICancelable;
     8 interface nsIDNSRecord;
    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 };

mercurial