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]

[src]

Cast this nsIPrivateBrowsingTrackingProtectionWhitelist to one of its base interfaces.

impl nsIPrivateBrowsingTrackingProtectionWhitelist
[src]

[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);

[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);

[src]

/**
   * 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>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIPrivateBrowsingTrackingProtectionWhitelist
[src]

IID: nsIID = nsID(3346915244, 27862, 17321, [132, 232, 145, 104, 42, 26, 123, 24])

[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]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIPrivateBrowsingTrackingProtectionWhitelist
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.