Struct xpcom::interfaces::nsIApplicationReputationService
[−]
[src]
#[repr(C)]pub struct nsIApplicationReputationService { /* fields omitted */ }
interface nsIApplicationReputationService : nsISupports
Methods
impl nsIApplicationReputationService
[src]
pub fn coerce<T: nsIApplicationReputationServiceCoerce>(&self) -> &T
[src]
Cast this nsIApplicationReputationService
to one of its base interfaces.
impl nsIApplicationReputationService
[src]
pub const VERDICT_SAFE: i64
VERDICT_SAFE: i64 = 0
/**
* Indicates the reason for the application reputation block.
*/
pub const VERDICT_DANGEROUS: i64
VERDICT_DANGEROUS: i64 = 1
pub const VERDICT_UNCOMMON: i64
VERDICT_UNCOMMON: i64 = 2
pub const VERDICT_POTENTIALLY_UNWANTED: i64
VERDICT_POTENTIALLY_UNWANTED: i64 = 3
pub const VERDICT_DANGEROUS_HOST: i64
VERDICT_DANGEROUS_HOST: i64 = 4
pub unsafe fn QueryReputation(
&self,
aQuery: *const nsIApplicationReputationQuery,
aCallback: *const nsIApplicationReputationCallback
) -> nsresult
[src]
&self,
aQuery: *const nsIApplicationReputationQuery,
aCallback: *const nsIApplicationReputationCallback
) -> nsresult
/**
* Start querying the application reputation service.
*
* @param aQuery
* The nsIApplicationReputationQuery containing metadata of the
* downloaded file.
*
* @param aCallback
* The callback for receiving the results of the query.
*
* @remarks aCallback may not be null. onComplete is guaranteed to be called
* on aCallback. This function may not be called more than once with
* the same query object. If any of the attributes of aQuery have
* not been set or have been set with empty data (with the exception
* of sourceURI), then a valid request can still be constructed and
* will solicit a valid response, but won't produce any useful
* information.
*/
void queryReputation (in nsIApplicationReputationQuery aQuery, in nsIApplicationReputationCallback aCallback);
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 nsIApplicationReputationService
[src]
const IID: nsIID
IID: nsIID = nsID(3387962489, 64872, 17299, [172, 178, 200, 141, 79, 86, 49, 116])
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 nsIApplicationReputationService
[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 nsIApplicationReputationService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.