Struct xpcom::interfaces::nsIObjectLoadingContent [] [src]

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

interface nsIObjectLoadingContent : nsISupports

/**
 * This interface represents a content node that loads objects.
 *
 * Please make sure to update the MozObjectLoadingContent WebIDL
 * interface to mirror this interface when changing it.
 */

Methods

impl nsIObjectLoadingContent
[src]

[src]

Cast this nsIObjectLoadingContent to one of its base interfaces.

impl nsIObjectLoadingContent
[src]

TYPE_LOADING: i64 = 0
/**
   * See notes in nsObjectLoadingContent.h
   */

TYPE_IMAGE: i64 = 1

TYPE_PLUGIN: i64 = 2

TYPE_FAKE_PLUGIN: i64 = 3

TYPE_DOCUMENT: i64 = 4

TYPE_NULL: i64 = 5

PLUGIN_ACTIVE: i64 = 255

PLUGIN_UNSUPPORTED: i64 = 0

PLUGIN_ALTERNATE: i64 = 1

PLUGIN_DISABLED: i64 = 2

PLUGIN_BLOCKLISTED: i64 = 3

PLUGIN_OUTDATED: i64 = 4

PLUGIN_CRASHED: i64 = 5

PLUGIN_SUPPRESSED: i64 = 6

PLUGIN_USER_DISABLED: i64 = 7

PLUGIN_CLICK_TO_PLAY: i64 = 8

PLUGIN_VULNERABLE_UPDATABLE: i64 = 9

PLUGIN_VULNERABLE_NO_UPDATE: i64 = 10

PLUGIN_CLICK_TO_PLAY_QUIET: i64 = 11

PLUGIN_PERMISSION_PROMPT_ACTION_QUIET: i64 = 8

[src]

/**
   * The actual mime type (the one we got back from the network
   * request) for the element.
   */

readonly attribute ACString actualType;

[src]

/**
   * Gets the type of the content that's currently loaded. See
   * the constants above for the list of possible values.
   */

readonly attribute unsigned long displayedType;

[src]

/**
   * Gets the content type that corresponds to the give MIME type.  See the
   * constants above for the list of possible values.  If nothing else fits,
   * TYPE_NULL will be returned.
   */

unsigned long getContentTypeForMIMEType (in AUTF8String aMimeType);

[src]

/**
   * Returns the base URI of the object as seen by plugins. This differs from
   * the normal codebase in that it takes <param> tags and plugin-specific
   * quirks into account.
   */

[noscript] readonly attribute nsIURI baseURI;

[src]

[noscript] void pluginDestroyed ();

[src]

[noscript] void pluginCrashed (in nsIPluginTag pluginTag, in AString pluginDumpID, in AString browserDumpID, in boolean submittedCrashReport);

[src]

/**
   * Forces a re-evaluation and reload of the tag, optionally invalidating its
   * click-to-play state.  This can be used when the MIME type that provides a
   * type has changed, for instance, to force the tag to re-evalulate the
   * handler to use.
   */

void reload (in boolean aClearActivation);

[src]

/**
   * This attribute will return true if the current content type has been
   * activated, either explicitly or by passing checks that would have it be
   * click-to-play.
   */

readonly attribute boolean activated;

[src]

[noscript] void stopPluginInstance ();

[src]

[noscript] void syncStartPluginInstance ();

[src]

[noscript] void asyncStartPluginInstance ();

[src]

/**
   * Puts the tag in the "waiting on a channel" state and adopts this
   * channel. This does not override the normal logic of examining attributes
   * and the channel type, so the load may cancel this channel if it decides not
   * to use one.
   *
   * This assumes:
   *  - This tag has not begun loading yet
   *  - This channel has not yet hit OnStartRequest
   *  - The caller will continue to pass channel events to us as a listener
   */

[noscript] void initializeFromChannel (in nsIRequest request);

[src]

/**
   * The URL of the data/src loaded in the object. This may be null (i.e.
   * an <embed> with no src).
   */

readonly attribute nsIURI srcURI;

[src]

/**
   * Disable the use of fake plugins and reload the tag if necessary.
   */

void skipFakePlugins ();

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

IID: nsIID = nsID(783489374, 16106, 16515, [187, 29, 210, 215, 15, 163, 92, 203])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIObjectLoadingContent
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.