Struct xpcom::interfaces::nsIUrlClassifierParseFindFullHashCallback [] [src]

#[repr(C)]
pub struct nsIUrlClassifierParseFindFullHashCallback { /* fields omitted */ }

interface nsIUrlClassifierParseFindFullHashCallback : nsISupports

/**
 * Interface for parseFindFullHashResponseV4 callback
 */

Methods

impl nsIUrlClassifierParseFindFullHashCallback
[src]

[src]

Cast this nsIUrlClassifierParseFindFullHashCallback to one of its base interfaces.

impl nsIUrlClassifierParseFindFullHashCallback
[src]

[src]

/**
   * Callback when a match is found in full hash response. This callback may be
   * called multiple times when there are more than one matches in response.
   *
   * @param aCompleteHash A 32-byte complete hash string.
   * @param aTableNames The table names that this complete hash is associated with.
   *                    Since the server responded with a threat type, multiple
   *                    list names can be returned. The caller is reponsible
   *                    for filtering out the unrequested table names.
   *                    See |convertThreatTypeToListNames| for the format.
   * @param aPerHashCacheDuration See "FindFullHashesResponse" in safebrowsing.proto.
   *
   */

void onCompleteHashFound (in ACString aCompleteHash, in ACString aTableNames, in unsigned long aPerHashCacheDuration);

[src]

/**
   * Callback when full hash response is received.
   *
   * @param aMinWaitDuration See "FindFullHashesResponse" in safebrowsing.proto.
   * @param aNegCacheDuration See "FindFullHashesResponse" in safebrowsing.proto.
   *
   */

void onResponseParsed (in unsigned long aMinWaitDuration, in unsigned long aNegCacheDuration);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIUrlClassifierParseFindFullHashCallback
[src]

IID: nsIID = nsID(4223232074, 41130, 4582, [136, 176, 8, 96, 110, 69, 107, 138])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIUrlClassifierParseFindFullHashCallback
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIUrlClassifierParseFindFullHashCallback
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.