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]
pub fn coerce<T: nsIUrlClassifierHashCompleterCoerce>(&self) -> &T
[src]
Cast this nsIUrlClassifierHashCompleter
to one of its base interfaces.
impl nsIUrlClassifierHashCompleter
[src]
pub unsafe fn Complete(
&self,
partialHash: &nsACString,
gethashUrl: &nsACString,
tableName: &nsACString,
callback: *const nsIUrlClassifierHashCompleterCallback
) -> nsresult
[src]
&self,
partialHash: &nsACString,
gethashUrl: &nsACString,
tableName: &nsACString,
callback: *const nsIUrlClassifierHashCompleterCallback
) -> nsresult
/**
* 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>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIUrlClassifierHashCompleter
[src]
const IID: nsIID
IID: nsIID = nsID(589279917, 60042, 20067, [163, 49, 234, 252, 59, 67, 72, 17])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[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]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIUrlClassifierHashCompleter
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.