Struct xpcom::interfaces::nsIPluginHost [] [src]

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

interface nsIPluginHost : nsISupports

Methods

impl nsIPluginHost
[src]

[src]

Cast this nsIPluginHost to one of its base interfaces.

impl nsIPluginHost
[src]

FLAG_CLEAR_ALL: i64 = 0

FLAG_CLEAR_CACHE: i64 = 1

EXCLUDE_NONE: i64 = 0

EXCLUDE_DISABLED: i64 = 1

EXCLUDE_FAKE: i64 = 2

[src]

/**
   * Causes the plugins directory to be searched again for new plugin
   * libraries.
   */

void reloadPlugins ();

[src]

void getPluginTags ([optional] out unsigned long aPluginCount, [array, size_is (aPluginCount), retval] out nsIPluginTag aResults);

[src]

void clearSiteData (in nsIPluginTag plugin, in AUTF8String domain, in uint64_t flags, in int64_t maxAge, in nsIClearSiteDataCallback callback);

[src]

boolean siteHasData (in nsIPluginTag plugin, in AUTF8String domain);

[src]

/**
   * Get the "permission string" for the plugin.  This is a string that can be
   * passed to the permission manager to see whether the plugin is allowed to
   * run, for example.  This will typically be based on the plugin's "nice name"
   * and its blocklist state.
   *
   * @mimeType The MIME type we're interested in.
   * @excludeFlags Set of the EXCLUDE_* flags above, defaulting to EXCLUDE_NONE.
   */

ACString getPermissionStringForType (in AUTF8String mimeType, [optional] in uint32_t excludeFlags);

[src]

/**
   * Get the "permission string" for the plugin.  This is a string that can be
   * passed to the permission manager to see whether the plugin is allowed to
   * run, for example.  This will typically be based on the plugin's "nice name"
   * and its blocklist state.
   *
   * @tag The tage we're interested in
   * @excludeFlags Set of the EXCLUDE_* flags above, defaulting to EXCLUDE_NONE.
   */

ACString getPermissionStringForTag (in nsIPluginTag tag, [optional] in uint32_t excludeFlags);

[src]

/**
   * Get the nsIPluginTag for this MIME type. This method works with both
   * enabled and disabled/blocklisted plugins, but an enabled plugin will
   * always be returned if available.
   *
   * A fake plugin tag, if one exists and is available, will be returned in
   * preference to NPAPI plugin tags unless excluded by the excludeFlags.
   *
   * @mimeType The MIME type we're interested in.
   * @excludeFlags Set of the EXCLUDE_* flags above, defaulting to EXCLUDE_NONE.
   *
   * @throws NS_ERROR_NOT_AVAILABLE if no plugin is available for this MIME
   *         type.
   */

nsIPluginTag getPluginTagForType (in AUTF8String mimeType, [optional] in uint32_t excludeFlags);

[src]

/**
   * Get the nsIPluginTag enabled state for this MIME type.  See
   * nsIPluginTag.enabledState.
   *
   * @mimeType The MIME type we're interested in.
   * @excludeFlags Set of the EXCLUDE_* flags above, defaulting to EXCLUDE_NONE.
   */

unsigned long getStateForType (in AUTF8String mimeType, [optional] in uint32_t excludeFlags);

[src]

/**
   * Get the blocklist state for a MIME type.  See nsIPluginTag.blocklistState.
   *
   * @mimeType The MIME type we're interested in.
   * @excludeFlags Set of the EXCLUDE_* flags above, defaulting to EXCLUDE_NONE.
   */

uint32_t getBlocklistStateForType (in AUTF8String aMimeType, [optional] in uint32_t excludeFlags);

[src]

/**
   * Get a reference to an existing fake plugin tag for the given MIME type, if
   * any.  Can return null.
   */

nsIFakePluginTag getFakePlugin (in AUTF8String mimeType);

[src]

/**
   * Unregister a fake plugin.  The argument can be the .handlerURI.spec of an
   * existing nsIFakePluginTag, or just a known handler URI string that was
   * passed in the FakePluginTagInit when registering.
   */

void unregisterFakePlugin (in AUTF8String handlerURI);

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

IID: nsIID = nsID(4181259706, 28819, 17101, [165, 89, 175, 128, 57, 217, 146, 4])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIPluginHost
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.