Struct xpcom::interfaces::nsIUrlClassifierHashCompleterCallback [] [src]

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

interface nsIUrlClassifierHashCompleterCallback : nsISupports

/**
 * This interface is implemented by nsIUrlClassifierHashCompleter clients.
 */

Methods

impl nsIUrlClassifierHashCompleterCallback
[src]

[src]

Cast this nsIUrlClassifierHashCompleterCallback to one of its base interfaces.

impl nsIUrlClassifierHashCompleterCallback
[src]

[src]

/**
   * A complete hash has been found that matches the partial hash.
   * This method may be called 0-n times for a given
   * nsIUrlClassifierCompleter::complete() call.
   *
   * @param hash
   *        The 256-bit hash that was discovered.
   * @param table
   *        The name of the table that this hash belongs to.
   * @param chunkId
   *        The database chunk that this hash belongs to.
   */

void completionV2 (in ACString hash, in ACString table, in uint32_t chunkId);

[src]

/**
   * This will be called when a fullhash response is received and parsed
   * no matter if any full hash has been found.
   *
   * @param partialHash
   *        The hash that was sent for completion.
   * @param table
   *        The name of the table that this hash belongs to.
   * @param negativeCacheDuration
   *        The negative cache duration in millisecond.
   * @param fullHashes
   *        Array of fullhashes that match the prefix.
   */

void completionV4 (in ACString partialHash, in ACString table, in uint32_t negativeCacheDuration, in nsIArray fullHashes);

[src]

/**
   * The completion is complete.  This method is called once per
   * nsIUrlClassifierCompleter::complete() call, after all completion()
   * calls are finished.
   *
   * @param status
   *        NS_OK if the request completed successfully, or an error code.
   */

void completionFinished (in nsresult status);

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 nsIUrlClassifierHashCompleterCallback
[src]

IID: nsIID = nsID(3658931776, 57126, 16717, [189, 231, 196, 250, 244, 80, 72, 104])

[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 nsIUrlClassifierHashCompleterCallback
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIUrlClassifierHashCompleterCallback
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.