Struct xpcom::interfaces::nsIPrivateBrowsingTrackingProtectionWhitelist
[−]
[src]
#[repr(C)]pub struct nsIPrivateBrowsingTrackingProtectionWhitelist { /* fields omitted */ }
interface nsIPrivateBrowsingTrackingProtectionWhitelist : nsISupports
/**
* The Private Browsing Tracking Protection service checks a URI against an
* in-memory list of tracking sites.
*/
Methods
impl nsIPrivateBrowsingTrackingProtectionWhitelist
[src]
pub fn coerce<T: nsIPrivateBrowsingTrackingProtectionWhitelistCoerce>(
&self
) -> &T
[src]
&self
) -> &T
Cast this nsIPrivateBrowsingTrackingProtectionWhitelist
to one of its base interfaces.
impl nsIPrivateBrowsingTrackingProtectionWhitelist
[src]
pub unsafe fn AddToAllowList(&self, uri: *const nsIURI) -> nsresult
[src]
/**
* Add a URI to the list of allowed tracking sites in Private Browsing mode
* (essentially a tracking whitelist). This operation will cause the URI to
* be registered if it does not currently exist. If it already exists, then
* the operation is essentially a no-op.
*
* @param uri the uri to add to the list
*/
void addToAllowList (in nsIURI uri);
pub unsafe fn RemoveFromAllowList(&self, uri: *const nsIURI) -> nsresult
[src]
/**
* Remove a URI from the list of allowed tracking sites in Private Browsing
* mode (the tracking whitelist). If the URI is not already in the list,
* then the operation is essentially a no-op.
*
* @param uri the uri to remove from the list
*/
void removeFromAllowList (in nsIURI uri);
pub unsafe fn ExistsInAllowList(
&self,
uri: *const nsIURI,
_retval: *mut bool
) -> nsresult
[src]
&self,
uri: *const nsIURI,
_retval: *mut bool
) -> nsresult
/**
* Check if a URI exists in the list of allowed tracking sites in Private
* Browsing mode (the tracking whitelist).
*
* @param uri the uri to look for in the list
*/
bool existsInAllowList (in nsIURI uri);
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 nsIPrivateBrowsingTrackingProtectionWhitelist
[src]
const IID: nsIID
IID: nsIID = nsID(3346915244, 27862, 17321, [132, 232, 145, 104, 42, 26, 123, 24])
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 nsIPrivateBrowsingTrackingProtectionWhitelist
[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 nsIPrivateBrowsingTrackingProtectionWhitelist
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.