Interface nsIObjectLoadingContentType

This interface represents a content node that loads objects.

Please make sure to update the MozObjectLoadingContent WebIDL mixin to mirror this interface when changing it.

Hierarchy

Properties

actualType: string

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

displayedType: number

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

srcURI: nsIURI

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

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • 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_FALLBACK will be returned.

    Parameters

    • aMimeType: string

    Returns number

  • 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

    Parameters

    • request: nsIRequest

    Returns void

  • 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.

    Parameters

    • aClearActivation: boolean

    Returns void

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

    Returns void

  • Switch the tag into the TYPE_DOCUMENT state, and returns the BrowsingContext which the load should complete in.

    Parameters

    • channel: nsIChannel

    Returns BrowsingContext

Generated using TypeDoc