Struct xpcom::interfaces::nsIUrlClassifierParseFindFullHashCallback
[−]
[src]
#[repr(C)]pub struct nsIUrlClassifierParseFindFullHashCallback { /* fields omitted */ }
interface nsIUrlClassifierParseFindFullHashCallback : nsISupports
/**
* Interface for parseFindFullHashResponseV4 callback
*/
Methods
impl nsIUrlClassifierParseFindFullHashCallback
[src]
pub fn coerce<T: nsIUrlClassifierParseFindFullHashCallbackCoerce>(&self) -> &T
[src]
Cast this nsIUrlClassifierParseFindFullHashCallback
to one of its base interfaces.
impl nsIUrlClassifierParseFindFullHashCallback
[src]
pub unsafe fn OnCompleteHashFound(
&self,
aCompleteHash: &nsACString,
aTableNames: &nsACString,
aPerHashCacheDuration: uint32_t
) -> nsresult
[src]
&self,
aCompleteHash: &nsACString,
aTableNames: &nsACString,
aPerHashCacheDuration: uint32_t
) -> nsresult
/**
* 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);
pub unsafe fn OnResponseParsed(
&self,
aMinWaitDuration: uint32_t,
aNegCacheDuration: uint32_t
) -> nsresult
[src]
&self,
aMinWaitDuration: uint32_t,
aNegCacheDuration: uint32_t
) -> nsresult
/**
* 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>
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 nsIUrlClassifierParseFindFullHashCallback
[src]
const IID: nsIID
IID: nsIID = nsID(4223232074, 41130, 4582, [136, 176, 8, 96, 110, 69, 107, 138])
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 nsIUrlClassifierParseFindFullHashCallback
[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 nsIUrlClassifierParseFindFullHashCallback
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.