Struct xpcom::interfaces::nsIBlocklistService [] [src]

#[repr(C)]
pub struct nsIBlocklistService { /* fields omitted */ }

interface nsIBlocklistService : nsISupports

Methods

impl nsIBlocklistService
[src]

[src]

Cast this nsIBlocklistService to one of its base interfaces.

impl nsIBlocklistService
[src]

STATE_NOT_BLOCKED: i64 = 0

STATE_SOFTBLOCKED: i64 = 1

STATE_BLOCKED: i64 = 2

STATE_OUTDATED: i64 = 3

STATE_VULNERABLE_UPDATE_AVAILABLE: i64 = 4

STATE_VULNERABLE_NO_UPDATE: i64 = 5

[src]

/**
   * Determine the blocklist state of a plugin
   * @param   plugin
   *          The plugin to get the state for
   * @param   appVersion
   *          The version of the application we are checking in the blocklist.
   *          If this parameter is null, the version of the running application
   *          is used.
   * @param   toolkitVersion
   *          The version of the toolkit we are checking in the blocklist.
   *          If this parameter is null, the version of the running toolkit
   *          is used.
   * @returns The STATE constant.
   */

unsigned long getPluginBlocklistState (in nsIPluginTag plugin, [optional] in AString appVersion, [optional] in AString toolkitVersion);

[src]

/**
   * Determine the blocklist web page of a plugin.
   * @param   plugin
   *          The blocked plugin that we are determining the web page for.
   * @returns The URL of the description page.
   */

AString getPluginBlocklistURL (in nsIPluginTag plugin);

[src]

/**
   * Determine the blocklist infoURL of a plugin.
   * @param   plugin
   *          The blocked plugin that we are determining the infoURL for.
   * @returns The preferred URL to present the user, or |null| if
   *          it is not available.
   */

AString getPluginInfoURL (in nsIPluginTag plugin);

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

IID: nsIID = nsID(2799486830, 40802, 19649, [164, 112, 180, 131, 161, 166, 240, 150])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIBlocklistService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.