Struct xpcom::interfaces::nsIUrlClassifierHashCompleter [] [src]

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

interface nsIUrlClassifierHashCompleter : nsISupports

/**
 * Clients updating the url-classifier database have the option of sending
 * partial (32-bit) hashes of URL fragments to be blacklisted.  If the
 * url-classifier encounters one of these truncated hashes, it will ask an
 * nsIUrlClassifierCompleter instance to asynchronously provide the complete
 * hash, along with some associated metadata.
 * This is only ever used for testing and should absolutely be deleted (I
 * think).
 */

Methods

impl nsIUrlClassifierHashCompleter
[src]

[src]

Cast this nsIUrlClassifierHashCompleter to one of its base interfaces.

impl nsIUrlClassifierHashCompleter
[src]

[src]

/**
   * Request a completed hash from the given gethash url.
   *
   * @param partialHash
   *        The 32-bit hash encountered by the url-classifier.
   * @param gethashUrl
   *        The gethash url to use.
   * @param tableName
   *        The table where we matched the partial hash.
   * @param callback
   *        An nsIUrlClassifierCompleterCallback instance.
   */

void complete (in ACString partialHash, in ACString gethashUrl, in ACString tableName, in nsIUrlClassifierHashCompleterCallback callback);

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

IID: nsIID = nsID(589279917, 60042, 20067, [163, 49, 234, 252, 59, 67, 72, 17])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIUrlClassifierHashCompleter
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.