netwerk/dns/nsIDNSListener.idl

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     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