Struct xpcom::interfaces::nsIClassifiedChannel
[−]
[src]
#[repr(C)]pub struct nsIClassifiedChannel { /* fields omitted */ }
interface nsIClassifiedChannel : nsISupports
/**
* nsIClassifiedChannel
*
* A channel may optionally implement this interface if it carries classified
* result information of channel classifier. The information contains, for
* example, the name of matched table and the name of matched provider.
*/
Methods
impl nsIClassifiedChannel
[src]
pub fn coerce<T: nsIClassifiedChannelCoerce>(&self) -> &T
[src]
Cast this nsIClassifiedChannel
to one of its base interfaces.
impl nsIClassifiedChannel
[src]
pub unsafe fn SetMatchedInfo(
&self,
aList: &nsACString,
aProvider: &nsACString,
aFullHash: &nsACString
) -> nsresult
[src]
&self,
aList: &nsACString,
aProvider: &nsACString,
aFullHash: &nsACString
) -> nsresult
/**
* Sets matched info of the classified channel.
*
* @param aList
* Name of the Safe Browsing list that matched (e.g. goog-phish-shavar).
* @param aProvider
* Name of the Safe Browsing provider that matched (e.g. google)
* @param aFullHash
* Full hash of URL that matched Safe Browsing list.
*/
void setMatchedInfo (in ACString aList, in ACString aProvider, in ACString aFullHash);
pub unsafe fn GetMatchedList(&self, aMatchedList: &mut nsACString) -> nsresult
[src]
/**
* Name of the list that matched
*/
readonly attribute ACString matchedList;
pub unsafe fn GetMatchedProvider(
&self,
aMatchedProvider: &mut nsACString
) -> nsresult
[src]
&self,
aMatchedProvider: &mut nsACString
) -> nsresult
/**
* Name of provider that matched
*/
readonly attribute ACString matchedProvider;
pub unsafe fn GetMatchedFullHash(
&self,
aMatchedFullHash: &mut nsACString
) -> nsresult
[src]
&self,
aMatchedFullHash: &mut nsACString
) -> nsresult
/**
* Full hash of URL that matched
*/
readonly attribute ACString matchedFullHash;
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 nsIClassifiedChannel
[src]
const IID: nsIID
IID: nsIID = nsID(1892638865, 41438, 19112, [130, 36, 5, 143, 137, 100, 190, 49])
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 nsIClassifiedChannel
[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 nsIClassifiedChannel
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.